Skip to content

Commit

Permalink
Dockerfile: Specifies comments on exposed ports
Browse files Browse the repository at this point in the history
Closes #5610

License: MIT
Signed-off-by: Frank Sachsenheim <funkyfuture@noreply.github.com>
  • Loading branch information
funkyfuture committed Oct 23, 2018
1 parent dd4d8bb commit 0b29355
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Expand Up @@ -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.
Expand Down

0 comments on commit 0b29355

Please sign in to comment.