Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
* master:
  chore(README) : Add styles.
  • Loading branch information
Maxime Wojtczak committed May 28, 2017
2 parents b68de07 + 9b7c296 commit 1822307
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
A dummy project implementing a health check for testing purposes.

## Run
```
docker pull maxwo/healthcheck
docker run -p 8080:8080 maxwo/healthcheck
docker run -p 8080:8080 maxwo/healthcheck
```
## Get healthcheck state
```
curl http://127.0.0.1:8080/healthcheck

```
## Set healthcheck state
```
curl -X PUT -H 'Content-type: application/json' -d 'true' http://127.0.0.1:8080/healthcheck

```
## Healthcheck endpoint
```
curl http://127.0.0.1:8080/health

```
It should return a 200 OK status when healthy, otherwise, 503.

0 comments on commit 1822307

Please sign in to comment.