2023-09-26 09:53:42 +02:00
|
|
|
services:
|
|
|
|
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"
|
2024-01-30 20:14:52 +01:00
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
2023-09-26 09:53:42 +02:00
|
|
|
ports:
|
|
|
|
- 22000:22000/tcp # TCP file transfers
|
|
|
|
- 22000:22000/udp # QUIC file transfers
|
|
|
|
- 21027:21027/udp # Receive local discovery broadcasts
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- external
|
|
|
|
|
|
|
|
networks:
|
|
|
|
external:
|
|
|
|
external: true
|