Last active
February 24, 2020 11:09
-
-
Save 2color/0768d165a59876dd4873c20e5e0eb53f to your computer and use it in GitHub Desktop.
This file contains 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
# by default, the Ghost image will use SQLite (and thus requires no separate database container) | |
# we have used MySQL here merely for demonstration purposes (especially environment-variable-based configuration) | |
version: '3.1' | |
services: | |
ghost: | |
image: ghost:3-alpine | |
restart: always | |
ports: | |
- 8080:2368 | |
environment: | |
# see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables | |
database__client: mysql | |
database__connection__host: db | |
database__connection__user: root | |
database__connection__password: example | |
database__connection__database: ghost | |
db: | |
image: mysql:5.7 | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment