Update compose file
This commit is contained in:
+2
-3
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongodb/mongodb-community-server
|
image: mongo:latest
|
||||||
container_name: tort-mongodb
|
container_name: tort-mongodb
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:${MONGO_PORT}:27017"
|
- "127.0.0.1:${MONGO_PORT}:27017"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mongosh", "--username", "${MONGO_USER}", "--password", "${MONGO_PASS}", "--eval", "db.runCommand({ ping: 1 })"]
|
test: [ "CMD", "mongosh", "--username", "${MONGO_USER}", "--password", "${MONGO_PASS}", "--eval", "db.runCommand({ ping: 1 })" ]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 2
|
retries: 2
|
||||||
@@ -31,4 +31,3 @@ services:
|
|||||||
MONGO_PORT: ${MONGO_PORT}
|
MONGO_PORT: ${MONGO_PORT}
|
||||||
MONGO_USER: ${MONGO_USER}
|
MONGO_USER: ${MONGO_USER}
|
||||||
MONGO_PASS: ${MONGO_PASS}
|
MONGO_PASS: ${MONGO_PASS}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user