From e2120c4728668724c4277c3096374634e8cdd592 Mon Sep 17 00:00:00 2001 From: bt90 Date: Tue, 2 Mar 2021 20:42:25 +0100 Subject: [PATCH] docker: Expose 22000/udp (#7421) Co-authored-by: otbutz --- Dockerfile | 2 +- Dockerfile.buildx | 2 +- README-Docker.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0b3ffd01..e7d9ebbbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN rm -f syncthing && go run build.go -no-upgrade build syncthing FROM alpine -EXPOSE 8384 22000 21027/udp +EXPOSE 8384 22000/tcp 22000/udp 21027/udp VOLUME ["/var/syncthing"] diff --git a/Dockerfile.buildx b/Dockerfile.buildx index 64b0f6477..954574019 100644 --- a/Dockerfile.buildx +++ b/Dockerfile.buildx @@ -1,7 +1,7 @@ FROM alpine ARG TARGETARCH -EXPOSE 8384 22000 21027/udp +EXPOSE 8384 22000/tcp 22000/udp 21027/udp VOLUME ["/var/syncthing"] diff --git a/README-Docker.md b/README-Docker.md index 8c078ae5f..8f76cdaf5 100644 --- a/README-Docker.md +++ b/README-Docker.md @@ -13,7 +13,7 @@ altered with the ``PUID`` and ``PGID`` environment variables. ``` $ docker pull syncthing/syncthing -$ docker run -p 8384:8384 -p 22000:22000 \ +$ docker run -p 8384:8384 -p 22000:22000/tcp -p 22000:22000/udp \ -v /wherever/st-sync:/var/syncthing \ syncthing/syncthing:latest ```