Created
December 15, 2022 14:44
-
-
Save ahmadrosid/09204df6b684831e25205437c576e115 to your computer and use it in GitHub Desktop.
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.3' | |
services: | |
blog: | |
image: ghost:4 | |
restart: always | |
ports: | |
- 8080:2368 | |
volumes: | |
- ~/data/content:/var/lib/ghost/content | |
environment: | |
# see https://ghost.org/docs/config/#configuration-options | |
database__client: mysql | |
database__connection__host: database | |
database__connection__user: root | |
database__connection__password: strong_password | |
database__connection__database: ghost | |
url: http://103.150.197.135/ | |
NODE_ENV: production | |
database: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- ~/data/db:/var/lib/mysql | |
ports: | |
- "13928:3306" | |
environment: | |
MYSQL_ROOT_PASSWORD: strong_password | |
MYSQL_DATABASE: ghost | |
MYSQL_USER: user | |
MYSQL_PASSWORD: strong_password | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment