50 lines
1.2 KiB
Django/Jinja
50 lines
1.2 KiB
Django/Jinja
# vi: ft=yaml
|
|
version: "3"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
volumes:
|
|
config:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=lewis.dmz,nolock,soft,rw"
|
|
device: ":/mnt/data/nfs/syncthing/config"
|
|
nextcloud_data:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=lewis.dmz,nolock,soft,rw"
|
|
device: ":/mnt/data/nfs/nextcloud/data"
|
|
|
|
services:
|
|
syncthing:
|
|
image: lscr.io/linuxserver/syncthing:1.23.6
|
|
networks:
|
|
- traefik
|
|
deploy:
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=traefik
|
|
|
|
- traefik.http.routers.syncthing.entrypoints=localsecure
|
|
- traefik.http.routers.syncthing.rule=Host(`sync.kun.is`)
|
|
- traefik.http.routers.syncthing.service=syncthing
|
|
- traefik.http.routers.syncthing.tls=true
|
|
- traefik.http.routers.syncthing.tls.certresolver=letsencrypt
|
|
- traefik.http.services.syncthing.loadbalancer.server.port=8384
|
|
environment:
|
|
- PUID=33
|
|
- PGID=33
|
|
- TZ=Europe/Amsterdam
|
|
volumes:
|
|
- type: volume
|
|
source: nextcloud_data
|
|
target: /data
|
|
volume:
|
|
nocopy: true
|
|
- type: volume
|
|
source: config
|
|
target: /config
|
|
volume:
|
|
nocopy: true
|