Hi team,
Is there anyway where I can run growthbook in a docker-compose with pre-configured feature flags setup?I think this might be a use of config.yml but not sure how to implement this.. any suggestions?
(This is to avoid to use the web app to have to setup everything each time.)
f
fresh-football-47124
01/20/2025, 1:46 AM
config.yml won't be flexible enough for that use case, it doesn't describe features
fresh-football-47124
01/20/2025, 1:46 AM
(just data sources and metrics)
fresh-football-47124
01/20/2025, 1:47 AM
state is only stored in mongo, so you could distribute it with mongo that has the state defined, with flags etc.
👍 1
c
chilly-daybreak-3126
01/20/2025, 10:14 PM
For those who had a similar issue, on how to save state. Here is my solution on how to save Growthbook state.
With
docker-compose up
, use the
mongodump
command to create a backup and output it to the mounted directory:
Disclaimer: This is a localhost example(not tested) and not a production implementation or guideline. Please consider your relevant changes.
Thank you and hope it helps others also please let me know your thoughts.
chilly-daybreak-3126
01/20/2025, 10:15 PM
Also thank you @fresh-football-47124 for your prompt answer.