Compare commits

...

1 Commits
main ... health

Author SHA1 Message Date
3c5dd0e6c0 healthcheck ok pour stack gitea 2025-01-15 10:59:49 +01:00
2 changed files with 30 additions and 0 deletions

View File

@ -33,6 +33,12 @@ services:
- DRONE_SECRET_ENDPOINT=http://drone-vault:3003
networks:
- gitea
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# DRONE RUNNER
drone-runner:
@ -61,6 +67,12 @@ services:
- "3002:3000"
networks:
- gitea
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# DRONE VAULT
drone-vault:
@ -80,6 +92,12 @@ services:
- DRONE_RPC_SERVER=https://drone-server:3001
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DEBUG=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
drone-srv:

View File

@ -28,6 +28,12 @@ services:
- gitea-db
networks:
- gitea
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
gitea-db:
image: postgres:14
@ -43,6 +49,12 @@ services:
- ./postgres:/var/lib/postgresql/data
networks:
- gitea
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
gitea: