@cryptotaxi247 / kubo / commits / 0b2935522

Dockerfile: Specifies comments on exposed ports

Closes #5610 License: MIT Signed-off-by: Frank Sachsenheim <funkyfuture@noreply.github.com>

Frank Sachsenheim committed Oct 18, 2018 at 21:56 UTC 0b29355220b588c9b01b5bb8c4a2697e8e7506f7
1 file changed +4 -2
Dockerfile
+4 -2
@@ -51,11 +51,13 @@ COPY --from=0 /etc/ssl/certs /etc/ssl/certs
51 # This shared lib (part of glibc) doesn't seem to be included with busybox.
52 COPY --from=0 /lib/x86_64-linux-gnu/libdl-2.24.so /lib/libdl.so.2
53
54 -# Ports for Swarm TCP, Swarm uTP, API, Gateway, Swarm Websockets
54 +# Swarm TCP; should be exposed to the public
55 EXPOSE 4001
56 -EXPOSE 4002/udp
56 +# Daemon API; must not be exposed publicly but to client services under you control
57 EXPOSE 5001
58 +# Web Gateway; can be exposed publicly with a proxy, e.g. as https://ipfs.example.org
59 EXPOSE 8080
60 +# Swarm Websockets; must be exposed publicly when the node is listening using the websocket transport (/ipX/.../tcp/8081/ws).
61 EXPOSE 8081
62
63 # Create the fs-repo directory and switch to a non-privileged user.