healthcheck ok pour stack gitea
This commit is contained in:
parent
355cec8b10
commit
3c5dd0e6c0
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user