No persistance of data across restarts #351
NicholasCHowlett
started this conversation in
General
Replies: 1 comment
-
Just to follow up on this 'issue' I was having, turns out I need to user |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
Beta Was this translation helpful? Give feedback.
All reactions