Hi Team, I use docker compose for self hosted grow...
# announcements
v
Hi Team, I use docker compose for self hosted growth book. I just did docker-compose down (NO -v) and docker-compose up -d and everything for wiped. It even asked me to create a user the first time
w
Hi Keshav. I'm sorry to hear that. Docker-compose down when there is not a volume attached will unfortunately mean that the data can not be resurrected. At least to the best of my knowledge.
v
I have used default docker compose fine which has volume
w
I do not believe the default mongo service - where the data is stored - does have a volume specified.
v
ah i see, growthbook has a volume specified but mongo has none
w
correct
Was there a specific reason you did docker-compose down?
I can bring it up with the engineering team about adding a volume to the mongo container in the default docker image, but they might not want it for data security or performance reasons.
v
schema browser was giving this issue so I first thought to restart it
w
Perhaps we can make it clearer in the docs too, that doing docker-compose down is dangerous.
I hope you didn't lose too much data.
v
@white-fireman-22476 but how would the data persist if team is worried about performance issues. Is there an alternate way
no no, we had just started
w
oh good phew
The data persists as long as the docker container is not stopped or deleted. We also have export functionality.
v
isnt it danegrous. Suppose for things beyond control a server stops and restarts then data is gone
adding volume worked so thats good
w
Yes personally I always set a volume. It does seem to me personally a bit dangerous to not have a volume specified.
And sorry to hear that you will have to recreate your work so far. It looks like you might have been experiencing some permission or other issue in connecting with your datasource. If you run into that problem again let us know and we can try to help.
v
Sure, no issues. We were just starting so thankfully only thing was user access
f
lets improve this in the docs
w
Just needs to be approved
👍 1