syncthing: fix reverse proxy

This commit is contained in:
2025-10-17 10:38:21 +02:00
parent 96c70338d1
commit b86b524475

View File

@@ -3,7 +3,6 @@ services:
image: syncthing/syncthing:2.0 image: syncthing/syncthing:2.0
container_name: syncthing-valentin container_name: syncthing-valentin
hostname: syncthing-valentin hostname: syncthing-valentin
network_mode: host
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@@ -19,6 +18,9 @@ services:
published: 21027 published: 21027
mode: host mode: host
- 8384 - 8384
networks:
- default
- proxy
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.syncthing-valentin.rule=Host(`syncthing-valentin.lan`)" - "traefik.http.routers.syncthing-valentin.rule=Host(`syncthing-valentin.lan`)"
@@ -47,3 +49,8 @@ volumes:
type: 'nfs' type: 'nfs'
o: 'addr=truenas.lan' o: 'addr=truenas.lan'
device: ':/mnt/main_storage/valentin/Photos' device: ':/mnt/main_storage/valentin/Photos'
networks:
proxy:
external: true
name: proxy