syncthing: use swarm ports declaration

This commit is contained in:
2025-10-14 12:21:22 +02:00
parent 3b2d6480ce
commit da09a1ae5e

View File

@@ -12,10 +12,16 @@ services:
- valentin_documents:/valentin/Documents - valentin_documents:/valentin/Documents
- valentin_photos:/valentin/Photos - valentin_photos:/valentin/Photos
ports: ports:
- 8384:8384 # Web UI - target: 22000
- 22000:22000/tcp # TCP file transfers published: 22000
- 22000:22000/udp # QUIC file transfers mode: host
- 21027:21027/udp # Receive local discovery broadcasts - target: 21027
published: 21027
mode: host
- 8384
labels:
- "traefik.enable=true"
- "traefik.http.routers.syncthing-valentin.rule=Host(`syncthing-valentin.lan`)"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1 test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1