Add healthcheck to docker-compose.yml
Adds a healthcheck that can be used for monitoring or autohealing.
This commit is contained in:
parent
1dcfe0717f
commit
b40830da76
|
@ -18,6 +18,10 @@ services:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
networks:
|
networks:
|
||||||
- teddit_net
|
- teddit_net
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
|
||||||
|
interval: 1m
|
||||||
|
timeout: 3s
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue