Docker icon indicating copy to clipboard operation
Docker copied to clipboard

Initializing when stopping docker compose and starting it again

Open titansmc opened this issue 7 years ago • 4 comments

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.

titansmc avatar Jun 22 '18 13:06 titansmc

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

shuichiro-makigaki avatar Jun 24 '18 04:06 shuichiro-makigaki

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.

Disinterpreter avatar Jan 09 '20 08:01 Disinterpreter

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.

djdefi avatar Jan 09 '20 16:01 djdefi

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

Disinterpreter avatar Jan 09 '20 21:01 Disinterpreter