Add a health check to docker compose (monitor with docker ps)
This commit is contained in:
1 parent
663e267d4c
commit
24a0a457a1
1 file changed
+6
@@ -12,6 +12,12 @@ services:
|
||||
- ./voices:/app/voices/
|
||||
- ./finetune/put-voice-samples-in-here:/app/finetune/put-voice-samples-in-here
|
||||
- ./dockerconfig.json:/app/confignew.json
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:7851/api/ready"]
|
||||
interval: 1m30s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
|
||||
Reference in new issue
Block a user