Last active
April 20, 2022 17:49
-
-
Save wiliscavalcante/eaa3346a3e3541fb5de56f27a7d4b51f to your computer and use it in GitHub Desktop.
Stack docker-compose Ghost e Mysql
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.9' | |
services: | |
ghost: | |
image: ghost:latest | |
restart: always | |
environment: | |
database__client: mysql | |
database__connection__host: mysql | |
database__connection__user: root | |
database__connection__password: example | |
database__connection__database: ghost | |
url: http://localhost:2368 | |
volumes: | |
- ghost-data:/var/lib/ghost/content | |
ports: | |
- 2368:2368 | |
mysql: | |
image: mysql:8.0 | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: example | |
volumes: | |
- mysql-data:/var/lib/mysql | |
volumes: | |
ghost-data: {} | |
mysql-data: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment