Reachable at localhost, but not at localhost:3000? #7512
-
Hi! I'm hosting wiki.js via Docker and have no idea what I'm doing! Haha. I've it running just fine on localhost. However, when I try to access it via localhost:3000, or {my-ip-address}:3000, I just get a page that says "unable to connect." Since I need to have it accessible via the port in order to get tailscale funnel working, I'm a bit at a loss. Linux Mint |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your wikijs'es port (3000) inside container is mapped to port 80 at host side thus you are able to connect to http://localhost ( aka http://localhost:80 ) but not to http://localhost:3000 or
FYI: https://docs.docker.com/reference/compose-file/services/#ports You have option to change mapping from In case you have FW (e.g. firewalld) at your host you might want to understand / be aware of also this https://docs.docker.com/engine/network/packet-filtering-firewalls/ to understand whats happening behind the scene.
It is already "accessible via the port". Number of the port is at the moment |
Beta Was this translation helpful? Give feedback.
Your wikijs'es port (3000) inside container is mapped to port 80 at host side thus you are able to connect to http://localhost ( aka http://localhost:80 ) but not to http://localhost:3000 or
http://<your-ip-address>:3000
FYI: https://docs.docker.com/reference/compose-file/services/#ports
You have option to change mapping from
"80:3000"
to"3000:3000"
or changenetwork_mode
tohost
( https://docs.docker.com/reference/compose-file/services/#network_mode ). Port mapping is ignored with host mode. Eitherway your service is then available via port 3000 instead of 80.In case you have FW (e.g. firewalld) at your hos…