26 lines
624 B
YAML
26 lines
624 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
syncthing:
|
|
image: syncthing/syncthing:latest
|
|
container_name: syncthing
|
|
hostname: syncthing
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
volumes:
|
|
- ${CONFIG_PATH}:/var/syncthing/config
|
|
- ${DATA_PATH}:/var/syncthing/data
|
|
ports:
|
|
- ${WEB_UI_PORT}:8384 # Web UI
|
|
- ${SYNC_PORT}:22000/tcp # TCP file transfers
|
|
- ${SYNC_PORT}:22000/udp # QUIC file transfers
|
|
- ${DISCOVERY_PORT}:21027/udp # Local discovery
|
|
restart: unless-stopped
|
|
networks:
|
|
- syncthing_network
|
|
|
|
networks:
|
|
syncthing_network:
|
|
driver: bridge
|