From da09a1ae5e08dce3a09a73e5260a8d8c3b3801e2 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 14 Oct 2025 12:21:22 +0200 Subject: [PATCH] syncthing: use swarm ports declaration --- docker/personal/syncthing/docker-compose.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker/personal/syncthing/docker-compose.yml b/docker/personal/syncthing/docker-compose.yml index 81c4a7b..5c1ff53 100644 --- a/docker/personal/syncthing/docker-compose.yml +++ b/docker/personal/syncthing/docker-compose.yml @@ -12,10 +12,16 @@ services: - valentin_documents:/valentin/Documents - valentin_photos:/valentin/Photos ports: - - 8384:8384 # Web UI - - 22000:22000/tcp # TCP file transfers - - 22000:22000/udp # QUIC file transfers - - 21027:21027/udp # Receive local discovery broadcasts + - target: 22000 + published: 22000 + mode: host + - target: 21027 + published: 21027 + mode: host + - 8384 + labels: + - "traefik.enable=true" + - "traefik.http.routers.syncthing-valentin.rule=Host(`syncthing-valentin.lan`)" restart: unless-stopped healthcheck: test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1