Skip to content

No persistance of data across restarts #350

@NicholasCHowlett

Description

@NicholasCHowlett

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions