rocket chat
This commit is contained in:
@@ -122,20 +122,12 @@ services:
|
||||
# - type: bind
|
||||
# source: /srv/rocket/db
|
||||
# target: /bitnami/mongodb
|
||||
# healthcheck:
|
||||
# test:
|
||||
# [
|
||||
# "CMD",
|
||||
# "mongo",
|
||||
# "--quiet",
|
||||
# "mongodb/test",
|
||||
# "--eval",
|
||||
# "'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'",
|
||||
# ]
|
||||
# interval: 10s
|
||||
# timeout: 10s
|
||||
# retries: 5
|
||||
# start_period: 40s
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/rocketchat --quiet
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
environment:
|
||||
MONGODB_REPLICA_SET_MODE: primary
|
||||
MONGODB_REPLICA_SET_NAME: rs0
|
||||
|
||||
Reference in New Issue
Block a user