This is a fork of the jchaney owncloud docker image. It has been altered to build ontop of an unofficial Raspbian container, for the RaspberryPi. Non-sqlite is not yet working. Perhaps with ARG in Docker 1.9 the FROM can be parameterized and this fork will be unecessary. Additionally SPDY support has been disabled, as it was exhausting the RAM on the RPi.
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.
For running in production, you need to provide a TLS key and certificate. The
Makefile defaults to /etc/ssl/private/ssl-cert-snakeoil.key
and
/etc/ssl/certs/ssl-cert-snakeoil.pem
. Make sure those files exist or extend
the Makefile (you can include this Makefile and overwrite some variables in
your own Makefile). To generate self signed once you can run the following command:
make-ssl-cert generate-default-snakeoil
To setup ownCloud with MariaDB as backend, just run:
make owncloud-production
In the initial ownCloud setup, you need to supply the database user, password, database name and database host which you can look up via:
make owncloud-mariadb-get-pw
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.