Skip to content

Commit

Permalink
add healthcheck to docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Volker Hänsel committed Oct 3, 2023
1 parent 1205d3f commit 8fd60f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ services:
- 8889:80/tcp #connect to 8889 to get to the web UI
# network_mode: host
restart: on-failure
healthcheck:
test: curl --fail http://localhost:80 || exit 1
interval: 60s
retries: 5
networks:
- mqtt

Expand Down

0 comments on commit 8fd60f1

Please sign in to comment.