rocket chat

This commit is contained in:
msnie
2025-02-15 13:50:38 +01:00
parent b1155ea157
commit ce6680677a
+11 -2
View File
@@ -123,10 +123,19 @@ services:
# source: /srv/rocket/db # source: /srv/rocket/db
# target: /bitnami/mongodb # target: /bitnami/mongodb
healthcheck: healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo db:27017/rocketchat --quiet test:
interval: 30s [
"CMD",
"mongo",
"--quiet",
"127.0.0.1/test",
"--eval",
"'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'",
]
interval: 10s
timeout: 10s timeout: 10s
retries: 5 retries: 5
start_period: 40s
environment: environment:
MONGODB_REPLICA_SET_MODE: primary MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: rs0 MONGODB_REPLICA_SET_NAME: rs0