Docker image for ownCloud with security in mind.
The build instructions are tracked on GitHub. Automated builds are hosted on Docker Hub.
- It is directly based on Debian stable. No additional image layers which blow up the total image size and might by a security risk.
- Uses nginx as webserver.
- Hardened TLS configuration.
- Local caching enabled by default (APCu). See https://owncloud.org/blog/making-owncloud-faster-through-caching/
- Installs the ownCloud tarball directly from https://owncloud.org/ and it securely verifies the GPG signature.
- Makes installing of 3party apps easy and keeps them across updates.
- The
occ
command can be used just by typingdocker exec -ti $owncloud_container_name occ
.
You have two options to get the image:
- Build it yourself with
make build
. - Download it via
docker pull jchaney/owncloud
(automated build).
Checkout the Makefile for an example or just run make owncloud
which will setup a ownCloud container instance (called "owncloud"). After that, just head over to http://localhost/ and give it a try. You can now create an admin account. For testing purposes you can use SQLite (but remember to use a real database in production).
Setup a separate container running your database server and link it to the ownCloud container. To setup ownCloud with MariaDB as backend, just run:
make owncloud-production
In the initial ownCloud setup, you need to supply the database user and password which you can look up via (MYSQL_USER
, MYSQL_PASSWORD
):
docker exec owncloud-mariadb env
The hostname of your database is "db".
That should be it ๐
Just write the command(s) needed to install apps in a configuration file, mount it in the container and run
oc-install-3party-apps /owncloud/path/to/your/config /var/www/owncloud/apps_persistent
in your container. Checkout the example configuration and the script which does the work for details.
-
official docker repository for ownCloud
Uses Apache as webserver and is based on the official Docker PHP image.
-
Uses Apache as webserver and is based on a self build LAMP stack based on Arch Linux.
The current maintainer is Robin ypid
Schneider.
List of previous maintainers:
This project is distributed under GNU Affero General Public License, Version 3.