docker-library / ghost

Docker Official Image packaging for Ghost
https://hub.docker.com/_/ghost
MIT License
738 stars 313 forks source link

server__port env value seems not working #336

Closed jesseXu closed 1 year ago

jesseXu commented 2 years ago

I'm trying to change the default port with the latest Ghost image: docker run -d --name some-ghost -e NODE_ENV=development -e url=http://localhost:3001 -e server__port=2355 -p 3001:2355 ghost

and the running result seems still using the port 2368:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f2d85a146c8f ghost "docker-entrypoint.s…" 3 seconds ago Up 2 seconds 2368/tcp, 0.0.0.0:3001->2355/tcp some-ghost

tianon commented 2 years ago

That's due to the EXPOSE directive in the original Dockerfile, and should be totally safe to ignore (the container shouldn't actually be using 2368 in your configuration).