Created
May 20, 2022 12:39
-
-
Save nimboya/0e0a80d4202b373d6e497a09efae82d3 to your computer and use it in GitHub Desktop.
Ghost Docker Compose File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
ghost: | |
image: ghost:4-alpine | |
restart: always | |
ports: | |
- 8080:2368 | |
environment: | |
# see https://ghost.org/docs/config/#configuration-options | |
database__client: mysql | |
database__connection__host: db | |
database__connection__user: root | |
database__connection__password: example | |
database__connection__database: ghost | |
# this url value is just an example, and is likely wrong for your environment! | |
url: http://localhost:8080 | |
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired) | |
#NODE_ENV: development | |
db: | |
image: mysql:8.0 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment