Reasonably configurable Docker image for the latest ownCloud (9.0.0) - Debian 8, NGINX and PHP-FPM
100K+
Deploy ownCloud easily.
The quickest way to get it up is:
docker run -d -p 80:80 pschmitt/owncloud
Then go to http://localhost/ and log in as admin, password: changeme.
DB_TYPE: Either sqlite, mysql, pgsql or oci. Default: sqliteDB_HOST: Database host. Default: localhostDB_NAME: Database name. Default: owncloudDB_USER: Database user. Default: owncloudDB_PASS: Database password. Default: owncloudDB_TABLE_PREFIX: Prefix for all database tables. Default: oc_ADMIN_USER: Username of the admin. Default: adminADMIN_PASS: Password of the admin account. Default: changemeDATA_DIR: ownCloud data dir. Default: /var/www/owncloud/dataHTTPS_ENABLED: Whether to enable HTTPS (true or false). Default: falseTIMEZONE: Timezone. Default: UTCThe image currently supports linking against a MySQL or PostgreSQL container.
This container MUST be named db for this to work.
/var/www/owncloud/apps: ownCloud's plugin/apps directory/var/www/owncloud/config: ownCloud's config directory/var/www/owncloud/data: ownCloud's data directory/etc/ssl/certs/owncloud.crt: SSL certificate. Required if HTTPS_ENABLED is
true./etc/ssl/private/owncloud.key: SSL private key. Required if HTTPS_ENABLED
is true./var/log/nginx: Nginx logs[Unit]
Description=Dockerized ownCloud
After=docker.service docker-postgres.service
Requires=docker.service docker-postgres.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker kill owncloud
ExecStartPre=-/usr/bin/docker rm owncloud
ExecStartPre=/usr/bin/docker pull pschmitt/owncloud
ExecStart=/usr/bin/docker run --name=owncloud -h owncloud.example.com \
-p 80:80 -p 443:443 \
--link postgres:db \
-e 'DB_NAME=owncloud' \
-e 'DB_USER=owncloud' \
-e 'DB_PASS=PassWord' \
-e 'ADMIN_USER=admin' \
-e 'ADMIN_PASS=admin' \
-e 'TIMEZONE=Europe/Berlin' \
-e 'HTTPS_ENABLED=true' \
-v /srv/docker/owncloud/apps:/var/www/owncloud/apps \
-v /srv/docker/owncloud/config:/var/www/owncloud/config \
-v /srv/docker/owncloud/data:/var/www/owncloud/data \
-v /srv/docker/owncloud/owncloud.crt:/etc/ssl/certs/owncloud.crt \
-v /srv/docker/owncloud/owncloud.key:/etc/ssl/certs/owncloud.key \
pschmitt/owncloud
[Install]
Alias=owncloud.service
WantedBy=multi-user.target
Provided owncloud is the name of your container:
docker exec -it owncloud occ help
Content type
Image
Digest
sha256:265eb7e03…
Size
181.3 MB
Last updated
almost 7 years ago
docker pull pschmitt/owncloud