Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost order in db when restart container #64

Closed
alessiofx opened this issue Jun 12, 2019 · 3 comments
Closed

Lost order in db when restart container #64

alessiofx opened this issue Jun 12, 2019 · 3 comments

Comments

@alessiofx
Copy link

When you restart the container all the orders on the database are lost.
You can fix this problem.

@fabioberger
Copy link
Contributor

You can do this by mounting a volume to the Docker container where the database.sql file is stored so that it persists across container re-starts. We can add instructions to the README on how to do this. Thanks for the suggestion.

@dekz
Copy link
Member

dekz commented Jun 28, 2019

This will be possible once #65 is merged. Currently you can mount from local but not allocate a persistent volume.

@dekz
Copy link
Member

dekz commented Jun 29, 2019

A Docker volume can now be attached to the backend to allow for persistent orders through restarts

backend:
    ...
    volumes:
      - backend-database:/usr/app/src/db

@dekz dekz closed this as completed Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants