Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
updated README about healthcheck in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
maquis196 committed Aug 24, 2020
1 parent 3ad0737 commit 24f4fb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,12 @@ If you wish to point the healthcheck at a different port with docker command, ad

## Setting the healthcheck in docker-compose file

You can add the following to set a custom healthcheck in a docker compose file.
You can add the following to set a custom healthcheck in a docker compose file. You'll need version >2.1 for this to work.

```
healthcheck:
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
interval: 1m
timeout: 10s
retries: 3
```

0 comments on commit 24f4fb1

Please sign in to comment.