vps/projects/syncthing/compose.yaml.mako

58 lines
1.5 KiB
Text
Raw Normal View History

2024-10-07 14:42:58 +02:00
services:
syncthing:
container_name: syncthing
image: docker.io/syncthing/syncthing:1
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
stdiscosrv:
container_name: syncthing-discosrv
image: docker.io/syncthing/discosrv:1
restart: always
command:
- "-http"
environment:
- PUID=${env['users']['syncthing_discosrv']}
- PGID=${env['users']['syncthing_discosrv']}
networks:
- discosrv
ports:
- 127.0.0.1:${env['ports']['syncthing_discosrv']}:8443
strelaysrv:
container_name: syncthing-relaysrv
image: docker.io/syncthing/relaysrv:1
restart: always
command:
- '-ext-address=:${env['ports']["syncthing_relaysrv"]}'
- '-pools='
environment:
- PUID=${env['users']['syncthing_relaysrv']}
- PGID=${env['users']['syncthing_relaysrv']}
networks:
- relaysrv
ports:
- 22067:22067
volumes:
- strelaysrv:/var/strelaysrv
networks:
default:
enable_ipv6: true
discosrv:
enable_ipv6: true
relaysrv:
enable_ipv6: true
volumes:
strelaysrv: