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

Commit

Permalink
add healthcheck to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jun 3, 2020
1 parent d89d0d9 commit ec2eb4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
command: fdp-run 0.0.0.0 8080 --db http://db:8890/sparql
ports:
- "8080:8080"
healthcheck:
test: curl --silent --fail http://0.0.0.0:8080 || exit 1
interval: 5s
depends_on:
- db
db:
Expand Down

0 comments on commit ec2eb4b

Please sign in to comment.