0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/.docker
Chris Raible c1f9740665
Added opt-in ghost service to docker compose (#21938)
ref
https://linear.app/ghost/issue/ENG-1957/add-ghost-service-to-base-docker-compose-setup

- Currently our `compose.yml` file only runs Ghost's supporting
services, and it's expected that you'll run Ghost locally on your host
machine. This commit adds a `ghost` service to our `compose.yml` file,
so you can optionally run Ghost itself in a container using docker
compose.
- The `ghost` service is opt-in using [docker compose
profiles](https://docs.docker.com/compose/how-tos/profiles/), to
maintain the current behavior of only running supporting services as the
default.
- This commit also fixes an issue in the Dockerfile: the `WORKDIR` arg,
which is used to optionally specify an alternative working directory, is
not propagated from one build stage to the next, so it has to be
manually added as an `ARG` in each stage. This was necessary to use the
same Dockerfile for devcontainers (which require the WORKDIR to be
`/workspaces/ghost`) and docker compose, where we use `/home/ghost` in
alignment with the production image.
2025-01-07 14:16:43 -08:00
..
grafana Reorganized docker related files (#21650) 2024-11-19 13:15:06 -08:00
mysql-preload Reorganized docker related files (#21650) 2024-11-19 13:15:06 -08:00
prometheus Reorganized docker related files (#21650) 2024-11-19 13:15:06 -08:00
development.entrypoint.sh Added opt-in ghost service to docker compose (#21938) 2025-01-07 14:16:43 -08:00
Dockerfile Added opt-in ghost service to docker compose (#21938) 2025-01-07 14:16:43 -08:00