We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70b23b9 commit b953a19Copy full SHA for b953a19
.env
@@ -1,3 +1,5 @@
1
# Docker-compose env variables
2
POSTGRES_PORT=5555
3
-POSTGRES_PASSWORD=qwerty
+POSTGRES_PASSWORD=qwerty
4
+MONGODB_PORT=27017
5
+MONGODB_PASSWORD=sosibibu
docker-compose.yaml
@@ -19,8 +19,12 @@ services:
19
mongo:
20
image: mongo:7.0
21
container_name: mongo
22
+ environment:
23
+ MONGO_INITDB_DATABASE: "problems"
24
+ MONGO_INITDB_ROOT_USERNAME: "problems"
25
+ MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_PASSWORD}"
26
ports:
- - "27017:27017"
27
+ - "${MONGODB_PORT}:27017"
28
networks:
29
- backend-services
30
0 commit comments