36 lines
974 B
YAML
36 lines
974 B
YAML
|
services:
|
||
|
syncthing:
|
||
|
image: syncthing/syncthing:latest
|
||
|
container_name: syncthing
|
||
|
restart: always
|
||
|
user: {{ users['syncthing'] }}:{{ users['syncthing'] }}
|
||
|
environment:
|
||
|
- PUID={{ users['syncthing'] }}
|
||
|
- PGID={{ users['syncthing'] }}
|
||
|
ports:
|
||
|
- {{ ports['syncthing_webui'] }}:8384 # Web UI
|
||
|
- {{ ports['syncthing_tcp'] }}:22000/tcp # TCP file transfers
|
||
|
- {{ ports['syncthing_udp'] }}:22000/udp # QUIC file transfers
|
||
|
volumes:
|
||
|
- {{ volumes['syncthing_datadir'] }}:/var/syncthing
|
||
|
|
||
|
stdiscosrv:
|
||
|
image: syncthing/discosrv:latest
|
||
|
container_name: syncthing-discosrv
|
||
|
restart: always
|
||
|
entrypoint:
|
||
|
- "/bin/entrypoint.sh"
|
||
|
- "/bin/stdiscosrv"
|
||
|
- "-http"
|
||
|
- "-debug"
|
||
|
environment:
|
||
|
- PUID={{ users['syncthing_discosrv'] }}
|
||
|
- PGID={{ users['syncthing_discosrv'] }}
|
||
|
networks:
|
||
|
- discosrv
|
||
|
ports:
|
||
|
- {{ ports['syncthing_discosrv'] }}:8443
|
||
|
|
||
|
networks:
|
||
|
discosrv:
|