This message was deleted.
# give-feedback
w
This message was deleted.
c
It will connect to any MongoDB (I've been using AWS DocumentDB). You just need to set the environment variable
MONGODB_URI
with the MongoDB settings
This page indicates:
Copy code
CAUTION
The use of the mongo image within the docker-compose.yml is meant to quickly get a dev or staging environment up and running. For production you may want to use a more scalable and stable solution (ie. AWS DocumentDB, Google Cloud MongoDB Atlas, Azure Cosmos DB for Mongo, etc.)...
m
@cuddly-finland-73937 That text was not there a couple of months ago which you can see if you use something like https://archive.org/web/ 🙂
c
🙂 ok
f
Sorry about that
Using hosted Mongo/DocumentDB is safest, but you can also self-host mongo, but you should specify a volume (if you’re using docker) so that you don’t loose data if you do docker down.
m
Yeah we’ve learned our lesson now so will be careful about it in the future 😄 Luckily the project is just in a beta phase so not too much issues ^^ Also likely gonna keep a separate hosted JSON as a backup for if we have any future issues 👍
m
Is this the recommended tutorial for setting up the mongodb volume? How do we then connect the growthbook instance to it? 😄
c
you just need to set the environment variable
MONGODB_URI
with the MongoDB settings
m
Yeah I think we got it working now, thanks 😄
156 Views