-
Notifications
You must be signed in to change notification settings - Fork 319
Description
Heya, I'm having issue with persisting data across restarts (e.g. docker compose down/up). I can't seem to see the posts and the theme activated once this image is restarted, using the below Compose file contents (aimed at local development). Any advice would be much welcomed. Thanks in advance, Nick.
version: "3.7"
services:
ghost:
image: ghost:alpine
ports:
- 8000:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: password
database__connection__database: ghost
working_dir: /var/lib/ghost
volumes:
- ./:/var/lib/ghost/content
environment:
- NODE_ENV=development
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ghost
MYSQL_USER: root
MYSQL_PASSWORD: password
volumes:
- tessellateDB:/var/lib/mysql
- tessellateDBConfig:/etc/mysql
volumes:
tessellateDB:
tessellateDBConfig: