Skip to content

Commit e49b80a

Browse files
committed
New healthcheck for mongo+ stable mongo version
1 parent 744e483 commit e49b80a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
mongodb:
3-
image: mongo:latest
3+
image: mongo:8.0.9
44
container_name: hypixel_mongo
55
environment:
66
MONGO_INITDB_DATABASE: Minestom # Default database name
@@ -14,7 +14,8 @@ services:
1414
networks:
1515
- hypixel_network
1616
healthcheck:
17-
test: ["CMD", "pgrep", "mongod"]
17+
test: |
18+
mongosh --eval "db.adminCommand('ping').ok" --quiet > /dev/null 2>&1 || exit 1
1819
interval: 10s
1920
timeout: 5s
2021
retries: 5

0 commit comments

Comments
 (0)