mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 14:17:20 +02:00
add healthcheck
This commit is contained in:
1 parent
1d35de878d
commit
5b782a26a4
2 files changed
+32
-1
No files matched your search
+9
-1
@@ -14,6 +14,14 @@ services:
|
||||
# - ./repositories:/app/repositories
|
||||
ports:
|
||||
- 5000:$PORT
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- node
|
||||
- healthcheck.js
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
links:
|
||||
- mongodb
|
||||
- redis
|
||||
@@ -45,7 +53,7 @@ services:
|
||||
mongodb-backup:
|
||||
image: tiredofit/db-backup
|
||||
links:
|
||||
- mongodb
|
||||
- mongodb
|
||||
volumes:
|
||||
- ./db_backups:/backup
|
||||
environment:
|
||||
|
||||
Reference in new issue
Block a user