vps/roles/syncthing/templates/docker-compose.yaml

54 lines
1.4 KiB
YAML
Raw Normal View History

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:
- 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
command:
2024-02-17 19:01:04 +01:00
- "-http"
environment:
- PUID={{ users['syncthing_discosrv'] }}
- PGID={{ users['syncthing_discosrv'] }}
networks:
- discosrv
ports:
- 127.0.0.1:{{ ports['syncthing_discosrv'] }}:8443
strelaysrv:
2024-04-06 22:01:03 +02:00
image: docker.io/syncthing/relaysrv:1
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:
relaysrv:
volumes:
strelaysrv: