2024-02-17 19:01:04 +01:00
|
|
|
services:
|
|
|
|
syncthing:
|
2024-04-06 22:01:03 +02:00
|
|
|
image: docker.io/syncthing/syncthing:1
|
2024-02-17 19:01:04 +01:00
|
|
|
container_name: syncthing
|
|
|
|
restart: always
|
|
|
|
user: {{ users['syncthing'] }}:{{ users['syncthing'] }}
|
|
|
|
environment:
|
|
|
|
- PUID={{ users['syncthing'] }}
|
|
|
|
- PGID={{ users['syncthing'] }}
|
|
|
|
ports:
|
2024-02-18 22:19:55 +01:00
|
|
|
- 127.0.0.1:{{ ports['syncthing_webui'] }}:8384 # Web UI
|
2024-02-17 19:01:04 +01:00
|
|
|
- {{ ports['syncthing_tcp'] }}:22000/tcp # TCP file transfers
|
|
|
|
- {{ ports['syncthing_udp'] }}:22000/udp # QUIC file transfers
|
|
|
|
volumes:
|
|
|
|
- {{ volumes['syncthing_datadir'] }}:/var/syncthing
|
|
|
|
|
|
|
|
stdiscosrv:
|
2024-04-06 22:01:03 +02:00
|
|
|
image: docker.io/syncthing/discosrv:1
|
2024-02-17 19:01:04 +01:00
|
|
|
container_name: syncthing-discosrv
|
|
|
|
restart: always
|
2024-02-19 11:03:16 +01:00
|
|
|
command:
|
2024-02-17 19:01:04 +01:00
|
|
|
- "-http"
|
|
|
|
environment:
|
|
|
|
- PUID={{ users['syncthing_discosrv'] }}
|
|
|
|
- PGID={{ users['syncthing_discosrv'] }}
|
|
|
|
networks:
|
|
|
|
- discosrv
|
|
|
|
ports:
|
2024-02-18 22:19:55 +01:00
|
|
|
- 127.0.0.1:{{ ports['syncthing_discosrv'] }}:8443
|
2024-02-19 11:03:16 +01:00
|
|
|
|
|
|
|
strelaysrv:
|
2024-04-06 22:01:03 +02:00
|
|
|
image: docker.io/syncthing/relaysrv:1
|
2024-02-19 11:03:16 +01:00
|
|
|
container_name: syncthing-relaysrv
|
|
|
|
restart: always
|
|
|
|
command:
|
|
|
|
- '-ext-address=:{{ ports["syncthing_relaysrv"] }}'
|
|
|
|
- '-pools='
|
|
|
|
environment:
|
|
|
|
- PUID={{ users['syncthing_relaysrv'] }}
|
|
|
|
- PGID={{ users['syncthing_relaysrv'] }}
|
|
|
|
networks:
|
|
|
|
- relaysrv
|
|
|
|
ports:
|
|
|
|
- 22067:22067
|
|
|
|
volumes:
|
|
|
|
- strelaysrv:/var/strelaysrv
|
2024-02-17 19:01:04 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
discosrv:
|
2024-02-19 11:03:16 +01:00
|
|
|
relaysrv:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
strelaysrv:
|