docker
This commit is contained in:
parent
1f4193f9c0
commit
a49db6e4ae
9 changed files with 228 additions and 18 deletions
10
mongodb/healthcheck.sh
Normal file
10
mongodb/healthcheck.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
# healthcheck.sh pour MongoDB
|
||||
|
||||
# Attente que le port MongoDB soit ouvert
|
||||
nc -z localhost 27017 || exit 1
|
||||
|
||||
# Ping MongoDB pour confirmer qu'il fonctionne
|
||||
mongo --quiet --eval "db.adminCommand('ping')" || exit 1
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue