diff --git a/development/docker-compose.yml b/development/docker-compose.yml index df614ec..0000cba 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -27,12 +27,12 @@ services: source: ../init-mongo.sh target: /docker-entrypoint-initdb.d/init-mongo.sh read_only: true - # entrypoint: - # - bash - # - -c - # - | - # chmod 400 /etc/mongo/replica.key - # chown 999:999 /etc/mongo/replica.key + entrypoint: + - bash + - -c + - | + chmod 400 /etc/mongo/replica.key + chown 999:999 /etc/mongo/replica.key healthcheck: test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet # test: test $$(echo "rs.initiate().ok || rs.status().ok") | mongosh localhost:27017/test --quiet