Skip to content

Reachable at localhost, but not at localhost:3000? #7512

Closed Answered by srd90
SyndicatedPillbug asked this question in Help / Questions
Discussion options

You must be logged in to vote

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

... I'm hosting wiki.js via Docker and have no idea what I'm doing! Haha. ...

FYI: https://docs.docker.com/reference/compose-file/services/#ports

You have option to change mapping from "80:3000" to "3000:3000" or change network_mode to host ( 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SyndicatedPillbug
Comment options

Answer selected by SyndicatedPillbug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants