Commit de0f3ece authored by David PETIT's avatar David PETIT
Browse files

Update main.go

parent afb44273
......@@ -32,7 +32,7 @@ func main() {
// define the mongo client
// without docker you must be use this url --> mongodb://127.0.0.1:27017
// with docker you must be use this url --> mongodb://mongo:27017/
clientOptions := options.Client().ApplyURI("mongodb://127.0.0.1:27017")
clientOptions := options.Client().ApplyURI("mongodb://mongodb:27017/")
client, errMongo := mongo.Connect(ctx, clientOptions)
// errMongo
if errMongo != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment