Update compose file

This commit is contained in:
IgorVolochay
2026-08-13 11:53:18 +03:00
parent 4f152d8f99
commit 73d16e9111
+2 -3
View File
@@ -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}