Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/golang-mongodb/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
}
fmt.Println("Connected to MongoDB!")

collection := client.Database("taskManager").Collection("tasks")
collection := client.Database("taskmanager").Collection("tasks")

fs := http.FileServer(http.Dir("./static"))
http.Handle("/", fs)
Expand Down
2 changes: 1 addition & 1 deletion samples/golang-mongodb/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
environment:
# If you want to use MongoDB Atlas, you can set the URI with `defang config set MONGO_URI`.
# This will override any value set in the environment variable:
- MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@db:27017/
- MONGO_URI=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@db:27017/taskmanager
#deploy:
# resources:
# reservations:
Expand Down
Loading