Add healthcheck for yotter (#196)
This is a simple addition that adds a healthcheck for the Yotter web UI, allowing for better monitoring and autohealing of the yotter container if the UI is unavailable.
This commit is contained in:
parent
255c162e6c
commit
1d52e68b3e
@ -31,6 +31,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- migrations:/usr/src/app/migrations
|
- migrations:/usr/src/app/migrations
|
||||||
- ./yotter-config.json:/usr/src/app/yotter-config.json
|
- ./yotter-config.json:/usr/src/app/yotter-config.json
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:5000"]
|
||||||
|
interval: 1m
|
||||||
|
timeout: 3s
|
||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
migrations:
|
migrations:
|
||||||
|
Reference in New Issue
Block a user