Assign Syncthing its own network and static ip
This commit is contained in:
parent
5817e697b7
commit
4d88921b06
@ -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>
|
Loading…
Reference in New Issue
Block a user