mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +08:00
Merge pull request #5615 from funkyfuture/patch-1
Dockerfile: Specifies comments on exposed ports
This commit is contained in:
@ -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.
|
# 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
|
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 4001
|
||||||
EXPOSE 4002/udp
|
# Daemon API; must not be exposed publicly but to client services under you control
|
||||||
EXPOSE 5001
|
EXPOSE 5001
|
||||||
|
# Web Gateway; can be exposed publicly with a proxy, e.g. as https://ipfs.example.org
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
# Swarm Websockets; must be exposed publicly when the node is listening using the websocket transport (/ipX/.../tcp/8081/ws).
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
# Create the fs-repo directory and switch to a non-privileged user.
|
# Create the fs-repo directory and switch to a non-privileged user.
|
||||||
|
Reference in New Issue
Block a user