# vi: ft=yaml version: '3.8' networks: traefik: external: true volumes: data: driver_opts: type: "nfs" o: "addr=192.168.30.10,nolock,soft,rw" device: ":/mnt/data/nextcloud/data" services: app: image: nextcloud:27 volumes: - type: volume source: data target: /var/www/html volume: nocopy: true environment: - POSTGRES_USER=nextcloud - POSTGRES_DB=nextcloud - POSTGRES_PASSWORD={{ database_passwords.nextcloud }} - POSTGRES_HOST=192.168.30.10 networks: - traefik deploy: labels: - traefik.enable=true - traefik.http.routers.nextcloud.entrypoints=websecure - traefik.http.routers.nextcloud.rule=Host(`cloud.kun.is`) - traefik.http.routers.nextcloud.tls=true - traefik.http.routers.nextcloud.tls.certresolver=letsencrypt - traefik.http.routers.nextcloud.service=nextcloud - traefik.http.services.nextcloud.loadbalancer.server.port=80 - traefik.docker.network=traefik