40 lines
1 KiB
Django/Jinja
40 lines
1 KiB
Django/Jinja
# 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:26
|
|
volumes:
|
|
- type: volume
|
|
source: data
|
|
target: /var/www/html
|
|
volume:
|
|
nocopy: true
|
|
environment:
|
|
- POSTGRES_USER=swarm
|
|
- 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.pim.kunis.nl`)
|
|
- 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
|