From 0b29355220b588c9b01b5bb8c4a2697e8e7506f7 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Thu, 18 Oct 2018 21:56:36 +0200 Subject: [PATCH] Dockerfile: Specifies comments on exposed ports Closes #5610 License: MIT Signed-off-by: Frank Sachsenheim --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bffafe0c665..405af066062 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,11 +51,13 @@ COPY --from=0 /etc/ssl/certs /etc/ssl/certs # This shared lib (part of glibc) doesn't seem to be included with busybox. COPY --from=0 /lib/x86_64-linux-gnu/libdl-2.24.so /lib/libdl.so.2 -# Ports for Swarm TCP, Swarm uTP, API, Gateway, Swarm Websockets +# Swarm TCP; should be exposed to the public EXPOSE 4001 -EXPOSE 4002/udp +# Daemon API; must not be exposed publicly but to client services under you control EXPOSE 5001 +# Web Gateway; can be exposed publicly with a proxy, e.g. as https://ipfs.example.org EXPOSE 8080 +# Swarm Websockets; must be exposed publicly when the node is listening using the websocket transport (/ipX/.../tcp/8081/ws). EXPOSE 8081 # Create the fs-repo directory and switch to a non-privileged user.