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
1 changed files with 4 additions and 0 deletions

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: