Skip to content

Instantly share code, notes, and snippets.

@patrickjahns
Last active February 15, 2018 12:32
Show Gist options
  • Save patrickjahns/ee0e989bb40d442f4a4c12315b9fa6bf to your computer and use it in GitHub Desktop.
Save patrickjahns/ee0e989bb40d442f4a4c12315b9fa6bf to your computer and use it in GitHub Desktop.
owncloud-compose
version: '3'
services:
owncloud:
image: owncloud/server:10.0.6
restart: always
ports:
- 8443:443
- 8000:80
depends_on:
- db
- redis
environment:
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=owncloud
- OWNCLOUD_DB_HOST=db
- OWNCLOUD_UTF8MB4_ENABLED=true
- OWNCLOUD_REDIS_ENABLED=true
- OWNCLOUD_REDIS_HOST=redis
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/status.php"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /mnt/data
db:
image: webhippie/mariadb:latest
restart: always
environment:
- MARIADB_ROOT_PASSWORD=owncloud
- MARIADB_USERNAME=owncloud
- MARIADB_PASSWORD=owncloud
- MARIADB_DATABASE=owncloud
- MARIADB_MAX_ALLOWED_PACKET=128M
- MARIADB_INNODB_LOG_FILE_SIZE=64M
- MARIADB_INNODB_LARGE_PREFIX=ON
- MARIADB_INNODB_FILE_FORMAT=Barracuda
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /var/lib/mysql
redis:
image: webhippie/redis:latest
restart: always
environment:
- REDIS_MAXCONN=10000
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /var/lib/redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment