https://www.growthbook.io/ logo
v

victorious-restaurant-46323

08/02/2023, 10:08 AM
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

white-fireman-22476

08/02/2023, 10:19 AM
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

victorious-restaurant-46323

08/02/2023, 10:20 AM
I have used default docker compose fine which has volume
w

white-fireman-22476

08/02/2023, 10:22 AM
I do not believe the default mongo service - where the data is stored - does have a volume specified.
v

victorious-restaurant-46323

08/02/2023, 10:23 AM
ah i see, growthbook has a volume specified but mongo has none
w

white-fireman-22476

08/02/2023, 10:23 AM
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

victorious-restaurant-46323

08/02/2023, 10:27 AM
schema browser was giving this issue so I first thought to restart it
w

white-fireman-22476

08/02/2023, 10:27 AM
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

victorious-restaurant-46323

08/02/2023, 10:27 AM
@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

white-fireman-22476

08/02/2023, 10:28 AM
oh good phew
The data persists as long as the docker container is not stopped or deleted. We also have export functionality.
v

victorious-restaurant-46323

08/02/2023, 10:30 AM
isnt it danegrous. Suppose for things beyond control a server stops and restarts then data is gone
adding volume worked so thats good
w

white-fireman-22476

08/02/2023, 10:36 AM
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

victorious-restaurant-46323

08/02/2023, 10:38 AM
Sure, no issues. We were just starting so thankfully only thing was user access
f

fresh-football-47124

08/02/2023, 4:55 PM
lets improve this in the docs
w

white-fireman-22476

08/02/2023, 4:55 PM
Just needs to be approved
👍 1