Bxl-rpi syncthing

This commit is contained in:
Brieuc Dubois 2023-04-16 01:23:20 +02:00 committed by Bhasher
parent e63e6ebe6f
commit 5b65171c1a
1 changed files with 26 additions and 0 deletions

View File

@ -528,3 +528,29 @@ services:
volumes: volumes:
- ./config/idp/authelia.configuration.yaml:/config/configuration.yml:ro - ./config/idp/authelia.configuration.yaml:/config/configuration.yml:ro
- $DATA/authelia:/secrets:ro - $DATA/authelia:/secrets:ro
syncthing:
container_name: syncthing
image: syncthing/syncthing:latest
hostname: snode0
environment:
- PUID=33
- PGID=33
volumes:
- $DATA/syncthing:/var/syncthing:rw
- /mnt/syncDocuments:/mnt/SyncDocuments:rw
- /mnt/brieuc-pictures:/mnt/pictures:rw
labels:
- "traefik.enable=true"
- "traefik.http.routers.syncthing.rule=Host(`syncthing.bhasher.com`)"
- "traefik.http.routers.syncthing.entrypoints=internalsecure"
- "traefik.http.services.syncthing.loadbalancer.server.port=8384"
- "traefik.http.routers.syncthing.tls=true"
- "traefik.http.routers.syncthing.tls.certresolver=http"
- "traefik.http.routers.syncthing.middlewares=authelia@docker"
ports:
- 22000:22000/tcp # TCP file transfers
- 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped