Start exposing Ghost on localhost and template port

no ref

- The thinking here is this allows users to more easily run multiple Ghost instances on the same server by templating the Ghost port
- Majority wont need this but it also simplifies the message around having to forward traffic if you don't start Caddy
This commit is contained in:
James Loh
2025-07-09 14:35:39 +10:00
parent 7bb2eec30b
commit 7f332ff9ac
3 changed files with 10 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ services:
image: ghost:${GHOST_VERSION:-5-alpine}
restart: always
expose:
- "2368"
- "127.0.0.1:${GHOST_PORT:-2368}:2368"
# This is required to import current config when migrating
env_file:
- .env