Refactor healthcheck configurations in Docker Compose files
This commit is contained in:
@@ -16,4 +16,7 @@ services:
|
||||
volumes:
|
||||
- stacks-data:/appsmith-stacks
|
||||
healthcheck:
|
||||
test: ["NONE"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
@@ -20,6 +20,11 @@ services:
|
||||
depends_on:
|
||||
playwright-chrome:
|
||||
condition: service_started
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "ok"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
playwright-chrome:
|
||||
image: dgtlmoon/sockpuppetbrowser:latest
|
||||
# cap_add:
|
||||
@@ -31,3 +36,8 @@ services:
|
||||
- SCREEN_HEIGHT=1024
|
||||
- SCREEN_DEPTH=16
|
||||
- MAX_CONCURRENT_CHROME_PROCESSES=10
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "ok"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
@@ -25,6 +25,16 @@ services:
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- WEBSOCKETS_ENABLED=true
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8055/admin/login"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
postgresql:
|
||||
image: postgres:16-alpine
|
||||
volumes:
|
||||
|
||||
@@ -20,3 +20,9 @@ services:
|
||||
- DB_CLIENT=sqlite3
|
||||
- DB_FILENAME=/directus/database/data.db
|
||||
- WEBSOCKETS_ENABLED=true
|
||||
healthcheck:
|
||||
test:
|
||||
["CMD", "wget", "-q", "--spider", "http://localhost:8055/admin/login"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
@@ -26,6 +26,11 @@ services:
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "ok"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
volumes:
|
||||
|
||||
@@ -14,8 +14,18 @@ services:
|
||||
- POSTGRES_DB=${POSTGRESQL_DATABASE:-glitchtip}
|
||||
volumes:
|
||||
- pg-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
redis:
|
||||
image: redis
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
web:
|
||||
image: glitchtip/glitchtip
|
||||
depends_on:
|
||||
@@ -32,6 +42,11 @@ services:
|
||||
- CELERY_WORKER_MAX_TASKS_PER_CHILD=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-10000}
|
||||
volumes:
|
||||
- uploads:/code/uploads
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "ok"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
worker:
|
||||
image: glitchtip/glitchtip
|
||||
command: ./bin/run-celery-with-beat.sh
|
||||
@@ -47,6 +62,11 @@ services:
|
||||
- CELERY_WORKER_MAX_TASKS_PER_CHILD=${CELERY_WORKER_MAX_TASKS_PER_CHILD:-10000}
|
||||
volumes:
|
||||
- uploads:/code/uploads
|
||||
healthcheck:
|
||||
test: ["CMD", "echo", "ok"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
migrate:
|
||||
image: glitchtip/glitchtip
|
||||
restart: "no"
|
||||
|
||||
@@ -22,6 +22,11 @@ services:
|
||||
- DB_DATABASE=${MYSQL_DATABASE:-invoice_ninja}
|
||||
- DB_USERNAME=${SERVICE_USER_MYSQL}
|
||||
- DB_PASSWORD=${SERVICE_PASSWORD_MYSQL}
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:9000']
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
volumes:
|
||||
- invoice-ninja-public:/var/www/app/public
|
||||
- invoice-ninja-storage:/var/www/app/storage
|
||||
|
||||
@@ -2,24 +2,21 @@
|
||||
# slogan: Logto offers a comprehensive identity solution covering both the front and backend, complete with pre-built infrastructure and enterprise-grade solutions.
|
||||
# tags: logto,identity,login,authentication,oauth,oidc,openid
|
||||
# icon: svgs/logto_dark.svg
|
||||
# port: 3002
|
||||
|
||||
services:
|
||||
logto:
|
||||
image: svhd/logto:${TAG-latest}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
image: svhd/logto:${TAG-latest}
|
||||
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
|
||||
environment:
|
||||
- SERVICE_FQDN_AUTH_3001
|
||||
- SERVICE_FQDN_AUTH_3002
|
||||
- TRUST_PROXY_HEADER=1
|
||||
- DB_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-logto}
|
||||
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
|
||||
# Or, you can leverage it for local testing.
|
||||
- ENDPOINT=$SERVICE_FQDN_AUTH
|
||||
- ADMIN_ENDPOINT=$SERVICE_FQDN_AUTH
|
||||
- ENDPOINT=$LOGTO_ENDPOINT
|
||||
- ADMIN_ENDPOINT=$LOGTO_ADMIN_ENDPOINT
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3002"]
|
||||
interval: 5s
|
||||
|
||||
@@ -14,3 +14,8 @@ services:
|
||||
- MINIO_ROOT_PASSWORD=$SERVICE_PASSWORD_MINIO
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
@@ -24,7 +24,13 @@ services:
|
||||
volumes:
|
||||
- n8n-data:/home/node/.n8n
|
||||
depends_on:
|
||||
- postgresql
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:5678/"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
postgresql:
|
||||
image: postgres:16-alpine
|
||||
volumes:
|
||||
@@ -38,4 +44,3 @@ services:
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
|
||||
@@ -16,3 +16,8 @@ services:
|
||||
- TZ="Europe/Berlin"
|
||||
volumes:
|
||||
- n8n-data:/home/node/.n8n
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:5678/"]
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
Reference in New Issue
Block a user