mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 08:39:26 +01:00
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
|
||||
networks:
|
||||
- teddit_net
|
||||
healthcheck:
|
||||
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
|
||||
interval: 1m
|
||||
timeout: 3s
|
||||
depends_on:
|
||||
- redis
|
||||
networks:
|
||||
|
Loading…
Reference in New Issue
Block a user