mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Add healthcheck for docker-compose + autoheal for auto restart
This commit is contained in:
parent
0cb3404f5c
commit
e879a16843
1 changed files with 12 additions and 0 deletions
|
@ -88,8 +88,20 @@ services:
|
||||||
https_only: false
|
https_only: false
|
||||||
domain:
|
domain:
|
||||||
# external_port:
|
# external_port:
|
||||||
|
healthcheck:
|
||||||
|
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 2
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
autoheal:
|
||||||
|
restart: always
|
||||||
|
image: willfarrell/autoheal
|
||||||
|
environment:
|
||||||
|
- AUTOHEAL_CONTAINER_LABEL=all
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgresdata:
|
postgresdata:
|
||||||
|
|
Loading…
Reference in a new issue