Update Ghost stack.yml to have persistent data (#2370)

This commit is contained in:
Yolan Romailler 2023-12-05 03:16:08 +03:00 committed by GitHub
parent 0319f699a3
commit 45b7cc83c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -18,9 +18,17 @@ services:
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
volumes:
- ghost:/var/lib/ghost/content
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- db:/var/lib/mysql
volumes:
ghost:
db: