Skip to content

database resets when changing docker compose #984

@edwin-nz

Description

@edwin-nz

Describe the bug
Have a working system using the documented docker compose and image: bpatrik/pigallery2:latest

After making a change to the env setting below, it lost all the users setup. The system reverted to default admin:admin but kept my previous server config settings.

environment:
  - NODE_ENV=production 

The docker-compose uses docker volume for the db as per the documented docker compose below so it should be persistent and that is the correct behaviour when I restart the container. Suspect a bug is resetting the SQLite database when the docker compose is changed.

volumes:
db-data:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions