Assign Syncthing its own network and static ip

This commit is contained in:
moshferatu 2024-01-09 13:17:59 -08:00
parent 5817e697b7
commit 4d88921b06

View File

@ -9,9 +9,18 @@ services:
volumes: volumes:
- <docker directory>/syncthing/config:/config - <docker directory>/syncthing/config:/config
- <data drive>:/data - <data drive>:/data
networks:
syncthing:
ipv4_address: <static ip>
ports: ports:
- 8384:8384 - 8384:8384
- 22000:22000/tcp - 22000:22000/tcp
- 22000:22000/udp - 22000:22000/udp
- 21027:21027/udp - 21027:21027/udp
restart: unless-stopped restart: unless-stopped
networks:
syncthing:
name: syncthing
ipam:
config:
- subnet: <subnet>