vps/projects/syncthing/compose.yaml.mako

49 lines
1.6 KiB
Text
Raw Permalink Normal View History

2024-10-07 14:42:58 +02:00
services:
syncthing:
container_name: syncthing
image: docker.io/syncthing/syncthing:1
network_mode: pasta:-a,${env['pasta']['syncthing']['ipv4']},-a,${env['pasta']['syncthing']['ipv6']}
2024-10-07 14:42:58 +02:00
restart: always
user: ${env['users']['syncthing']}:${env['users']['syncthing']}
environment:
- PUID=${env['users']['syncthing']}
- PGID=${env['users']['syncthing']}
ports:
- 127.0.0.1:${env['ports']['syncthing_webui']}:8384 # Web UI
- ${env['ports']['syncthing_tcp']}:22000/tcp # TCP file transfers
- ${env['ports']['syncthing_udp']}:22000/udp # QUIC file transfers
volumes:
- ${env['volumes']['syncthing']['datadir']}:/var/syncthing
discosrv:
2024-10-07 14:42:58 +02:00
container_name: syncthing-discosrv
image: docker.io/syncthing/discosrv:1.27
network_mode: pasta
2024-10-07 14:42:58 +02:00
restart: always
command:
- "-http"
environment:
- PUID=${env['users']['syncthing_discosrv']}
- PGID=${env['users']['syncthing_discosrv']}
ports:
- 127.0.0.1:${env['ports']['syncthing_discosrv']}:8443
relaysrv:
2024-10-07 14:42:58 +02:00
container_name: syncthing-relaysrv
image: docker.io/syncthing/relaysrv:1
network_mode: pasta:-a,${env['pasta']['syncthing_relaysrv']['ipv4']},-a,${env['pasta']['syncthing_relaysrv']['ipv6']}
2024-10-07 14:42:58 +02:00
restart: always
command:
- '-ext-address=:${env['ports']["syncthing_relaysrv"]}'
- '-pools='
environment:
- PUID=${env['users']['syncthing_relaysrv']}
- PGID=${env['users']['syncthing_relaysrv']}
ports:
- 22067:22067
volumes:
- relaysrv:/var/strelaysrv
2024-10-07 14:42:58 +02:00
volumes:
relaysrv: