Difference between revisions of "HEALTHCHECK"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
[[docker-compose.yml]] official example: | [[docker-compose.yml]] official example: | ||
healthcheck: | healthcheck: | ||
− | test: ["CMD", "curl", "-f", "http://localhost"] | + | test: ["CMD", "curl", "[[-f]]", "http://localhost"] |
interval: 1m30s | interval: 1m30s | ||
timeout: 10s | timeout: 10s |
Revision as of 10:30, 22 February 2023
https://docs.docker.com/engine/reference/builder/#healthcheck Docker 1.12
docker-compose.yml official example:
healthcheck: test: ["CMD", "curl", "-f", "http://localhost"] interval: 1m30s timeout: 10s retries: 3 start_period: 40s
Related terms
- Start configuration behavior and restart policy
docker-compose
: https://docs.docker.com/compose/compose-file/compose-file-v3/#healthcheck
See also
Dockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK
,hadolint, LABEL, EXPOSE
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
Advertising: