mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-08 11:56:41 +00:00
feat(docker): add compose health checks notes
This commit is contained in:
parent
c3c679e6cd
commit
6f50690fe5
1 changed files with 10 additions and 2 deletions
|
@ -314,6 +314,14 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "./<rel/path/to/volume>:<in/container/path/to/data>" # service-dedicated volume
|
- "./<rel/path/to/volume>:<in/container/path/to/data>" # service-dedicated volume
|
||||||
- "<volume_name>:<in/container/path/to/data>" # reuseable volume
|
- "<volume_name>:<in/container/path/to/data>" # reuseable volume
|
||||||
|
healthcheck:
|
||||||
|
disable: <bool> # set to true to disable
|
||||||
|
test: curl -f http://localhost # set to ["NONE"] to disable
|
||||||
|
interval: # interval between checks (default 30s)
|
||||||
|
timeout: # check fail timeout (default 30s)
|
||||||
|
retries: # num of retries before unhealty (default 3)
|
||||||
|
start_period: # container init grace pediod (default 5s)
|
||||||
|
start_interval: # check interval in start period
|
||||||
|
|
||||||
# reusable volume definitions
|
# reusable volume definitions
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue