sparse-accountant-63897
07/19/2022, 4:27 PMdocker-compose.yml
that came with the git repo. And we defined data sources and metrics using the web UI forms. I am guessing that all the meta data is being stored in mongoDB. However, when we restarted the docker container using the following commands , I lost all the metrics, exposure and other definitions. I also lost users who registered. I am sure there is a better way to stand it up so as to persist across restarts? Any suggestion is appreciated
docker compose down
docker compose up
future-teacher-7046
sparse-accountant-63897
07/19/2022, 5:12 PMdepends_on:
- mongo
environment:
- MONGODB_URI=<mongodb://root:password@mongo:27017/>
- APP_ORIGIN=${APP_ORIGIN}
- API_HOST=${API_HOST}
volumes:
# - uploads:/usr/local/src/app/packages/back-end/uploads
- uploads:
S3_BUCKET:${S3_BUCKET}
S3_REGION:${S3_REGION}
volumes:
uploads:
future-teacher-7046
sparse-accountant-63897
07/19/2022, 5:36 PMvolumes:
- uploads:/data/growthbook/uploads # ebs volume that is mounted for persistent storage
future-teacher-7046
mongo
container and not the growthbook one. In the mongo container, data is stored at /data/db
so that needs to be persistedsparse-accountant-63897
07/19/2022, 7:00 PM