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:
|
||||
- migrations:/usr/src/app/migrations
|
||||
- ./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:
|
||||
mysql:
|
||||
migrations:
|
||||
|
Reference in New Issue
Block a user