Merge pull request 'Add healthcheck to docker-compose.yml' (#161) from sethsimmons/teddit:main into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/161
This commit is contained in:
teddit 2021-03-12 18:07:26 +01:00
commit 580774f290

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: