Extra health checks and route qbittorrent through VPN
This commit is contained in:
committed by
shaun collins
parent
a0530fb095
commit
aa064c3dbc
@@ -1,4 +1,3 @@
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
@@ -22,6 +21,15 @@ services:
|
||||
ports:
|
||||
- "3001:3000"
|
||||
- "222:22"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/healthz"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
start_period: 40s
|
||||
retries: 3
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: mysql:8
|
||||
@@ -37,7 +45,12 @@ services:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
start_period: 30s
|
||||
retries: 5
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
|
||||
Reference in New Issue
Block a user