Skip to content

Commit 30034b1

Browse files
mention atlas config in compose.yaml
1 parent 46d9f8b commit 30034b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

samples/golang-mongodb-atlas/compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ services:
99
target: 8080
1010
published: 8080
1111
environment:
12+
# If you want to use MongoDB Atlas, you can set the URI with `defang config set MONGO_URI`
13+
# and remove the value from the MONGO_URI environment variable so that it is read from defang
14+
# config. For example:
15+
# - MONGO_URI
1216
- MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@db:27017/
1317
#deploy:
1418
# resources:

0 commit comments

Comments
 (0)