# From https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml version: '2.1' volumes: files: driver: local services: owncloud: image: owncloud/server:10 restart: always ports: - 8081:8080 # depends_on: # - db # - redis environment: - OWNCLOUD_DOMAIN=owncloud.trygvis.io - OWNCLOUD_DB_TYPE=pgsql - OWNCLOUD_DB_NAME=owncloud - OWNCLOUD_DB_USERNAME=owncloud - OWNCLOUD_DB_PASSWORD=U0VmTan9jg # - OWNCLOUD_DB_HOST=127.0.0.1 - OWNCLOUD_DB_HOST=database - OWNCLOUD_ADMIN_USERNAME=admin - OWNCLOUD_ADMIN_PASSWORD=123 # - OWNCLOUD_MYSQL_UTF8MB4=true - OWNCLOUD_REDIS_ENABLED=false # - OWNCLOUD_REDIS_HOST=redis healthcheck: test: ["CMD", "/usr/bin/healthcheck"] interval: 30s timeout: 10s retries: 5 volumes: # - files:/mnt/data # - /disk1/owncloud/data:/mnt/data # - /etc/owncloud/config.php:/mnt/data/config/config.php - /pool0/owncloud:/mnt/data extra_hosts: database: 192.168.10.3