Add healthcheck to docker-compose.yml

Adds a healthcheck that can be used for monitoring or autohealing.
This commit is contained in:
sethsimmons 2021-03-12 18:06:34 +01:00
parent 1dcfe0717f
commit b40830da76

View File

@ -18,6 +18,10 @@ services:
- 8080:8080
networks:
- teddit_net
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
depends_on:
- redis
networks: