version: '3' networks: proxytanet: external: true services: db: image: postgres:10-alpine restart: unless-stopped environment: - POSTGRES_DB=workaround # nextcloud wants to create the db itself env_file: - .env volumes: - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/db:/var/lib/postgresql/data app: image: nextcloud:fpm-alpine restart: unless-stopped environment: - POSTGRES_DB=nextcloud env_file: - .env volumes: - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/app:/var/www/html web: build: . restart: unless-stopped volumes: - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/app:/var/www/html:ro labels: traefik.enable: "true" traefik.backend: "nextcloud" traefik.frontend.rule: "Host: cloud.${CHATONS_DOMAIN:-local}, www.cloud.${CHATONS_DOMAIN:-local}" traefik.docker.network: "proxytanet" networks: - proxytanet - default