48 lines
1.6 KiB
Mako
48 lines
1.6 KiB
Mako
services:
|
|
syncthing:
|
|
container_name: syncthing
|
|
image: docker.io/syncthing/syncthing:1
|
|
network_mode: pasta:-a,${env['pasta']['syncthing']['ipv4']},-a,${env['pasta']['syncthing']['ipv6']}
|
|
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:
|
|
container_name: syncthing-discosrv
|
|
image: docker.io/syncthing/discosrv:1
|
|
network_mode: pasta
|
|
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:
|
|
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']}
|
|
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
|
|
|
|
volumes:
|
|
relaysrv:
|
|
|