2023-12-25 18:22:22 +00:00
|
|
|
# vi: ft=yaml
|
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
driver_opts:
|
|
|
|
type: "nfs"
|
2024-01-01 12:16:11 +00:00
|
|
|
o: "addr=lewis.dmz,nolock,soft,rw"
|
|
|
|
device: ":/mnt/data/nfs/nextcloud/data"
|
2023-12-25 18:22:22 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
nextcloud:
|
|
|
|
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 }}
|
2024-01-01 12:16:11 +00:00
|
|
|
- POSTGRES_HOST=lewis.dmz
|
2023-12-25 18:22:22 +00:00
|
|
|
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
|