Update compose file

This commit is contained in:
IgorVolochay
2026-08-13 12:02:36 +03:00
parent ecc2237abd
commit 3d47bfd776
+2 -3
View File
@@ -2,7 +2,7 @@ version: '3.8'
services:
mongodb:
image: mongodb/mongodb-community-server
image: mongo:latest
container_name: tort-mongodb
restart: always
network_mode: bridge
@@ -12,7 +12,7 @@ services:
ports:
- "127.0.0.1:${MONGO_PORT}:27017"
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
timeout: 5s
retries: 2
@@ -31,4 +31,3 @@ services:
MONGO_PORT: ${MONGO_PORT}
MONGO_USER: ${MONGO_USER}
MONGO_PASS: ${MONGO_PASS}