cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
415 stars 280 forks source link

Initializing when stopping docker compose and starting it again #302

Open titansmc opened 6 years ago

titansmc commented 6 years ago

Hi, I am not sure under which circumstances (maybe always) when I do docker-compose down, and then docker-compose up I get the setup page and I lose the data. Is there something I am missing ?

P.S. I am mounting always the DDBB directory from the same place, locally, not using volume.

shuichiro-makigaki commented 6 years ago

There are three ways to avoid the issue. https://stackoverflow.com/a/39175305 is helpful.

Disinterpreter commented 4 years ago

No, it's because there aren't ways in documentation to describe how to mount the service container =\

I don't understand what I need mount to it works without erasing.

djdefi commented 4 years ago

Are you able to provide the full output from docker-compose up? I suspect the log entries would help to determine what isn't being picked up.

Disinterpreter commented 4 years ago

Are you able to provide the full output from docker-compose up? I suspect the log entries would help to determine what isn't being picked up.

I solved it, because I know how it works. Please, make a directory for db and change the line https://github.com/CachetHQ/Docker/blob/master/docker-compose.yml#L7

Or write about it in documentation