how to expose a port inside the docker?

10 months ago

I'm trying to host a Ghost server (<https://hub.docker.com/_/ghost/>) using railway. The logs shows that the database has been successfully set up and the web server is ready. In the example at <https://hub.docker.com/_/ghost/>, it binds the in-docker port 2368 with port 3001. However, when I tried to set Public Networking and set the port to 2368, the web service still can't be access from outside. What happened?

Solved

2 Replies

10 months ago


Status changed to Solved railway[bot] 10 months ago


10 months ago

Thanks!


how to expose a port inside the docker? - Railway Help Station