1
0
mirror of https://codeberg.org/teddit/teddit synced 2025-02-17 20:50:35 +01:00

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 - 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: