Add port for local discovery broadcasts to Docker documentation (#8197)

* Docs: Add descriptive comments to Docker ports

* Docs: Add Docker port for local discovery broadcasts

See https://docs.syncthing.net/specs/localdisco-v4.html
This commit is contained in:
Andrew Meyer
2022-03-08 08:06:45 +01:00
committed by GitHub
parent a3a4da6e3e
commit 1d74b547dd
+5 -4
View File
@@ -16,7 +16,7 @@ the name of the Syncthing instance can be optionally defined by using
**Docker cli** **Docker cli**
``` ```
$ docker pull syncthing/syncthing $ docker pull syncthing/syncthing
$ docker run -p 8384:8384 -p 22000:22000/tcp -p 22000:22000/udp \ $ docker run -p 8384:8384 -p 22000:22000/tcp -p 22000:22000/udp -p 21027:21027/udp \
-v /wherever/st-sync:/var/syncthing \ -v /wherever/st-sync:/var/syncthing \
--hostname=my-syncthing \ --hostname=my-syncthing \
syncthing/syncthing:latest syncthing/syncthing:latest
@@ -37,9 +37,10 @@ services:
volumes: volumes:
- /wherever/st-sync:/var/syncthing - /wherever/st-sync:/var/syncthing
ports: ports:
- 8384:8384 - 8384:8384 # Web UI
- 22000:22000/tcp - 22000:22000/tcp # TCP file transfers
- 22000:22000/udp - 22000:22000/udp # QUIC file transfers
- 21027:21027/udp # Receive local discovery broadcasts
restart: unless-stopped restart: unless-stopped
``` ```