Merge pull request #5 from ShadowArcanist/main

feat: Add healthchecks to docker compose
This commit is contained in:
iza
2025-06-23 13:01:39 +03:00
committed by GitHub

View File

@ -10,17 +10,38 @@ services:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
ports: ports:
- "5432:5432" - "5432:5432"
healthcheck:
test: ["CMD", "pg_isready -U opencut"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
redis: redis:
image: redis image: redis
ports: ports:
- "6379:6379" - "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
serverless-redis-http: serverless-redis-http:
image: hiett/serverless-redis-http:latest
ports: ports:
- "8079:80" - "8079:80"
image: hiett/serverless-redis-http:latest
environment: environment:
SRH_MODE: env SRH_MODE: env
SRH_TOKEN: example_token SRH_TOKEN: example_token
SRH_CONNECTION_STRING: "redis://redis:6379" SRH_CONNECTION_STRING: "redis://redis:6379"
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://127.0.0.1:80 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
volumes: volumes:
postgres_data: postgres_data: