https://www.growthbook.io/ logo
#announcements
Title
# announcements
b

brief-traffic-36675

05/18/2023, 7:30 PM
In case of a self-hosted GrowthBook, what is the format the
MONGODB_URI
should have?
mongodb+srv://<username>:<password>hostname
?
f

fresh-football-47124

05/18/2023, 7:32 PM
Thats correct
my local is:
Copy code
MONGODB_URI=<mongodb://username:password@mongo:27017/>
b

brief-traffic-36675

05/18/2023, 7:35 PM
I am using mongodb atlas so it is giving something like
Copy code
mongodb+srv://<username>:<password>@clustername.123456.mongodb.net/?retryWrites=true&w=majority
will this work?
f

fresh-football-47124

05/18/2023, 8:00 PM
I think so
you can test it pretty easily
b

brief-traffic-36675

05/18/2023, 9:53 PM
👍
6 Views