healthcheck ok

This commit is contained in:
hamza rahmani 2025-01-09 16:28:41 +01:00
parent 2b268df40d
commit 6b615d61e2

View File

@ -14,10 +14,18 @@ services:
env_file:
- config.env
depends_on:
- penpot-backend
- penpot-exporter
penpot-backend:
condition: service_healthy
penpot-exporter:
condition: service_healthy
networks:
- penpot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
penpot-backend:
image: "penpotapp/backend:2.0.1"
@ -25,12 +33,20 @@ services:
volumes:
- /data/penpot/penpot_assets_data:/opt/data
depends_on:
- penpot-postgres
- penpot-redis
penpot-postgres:
condition: service_healthy
penpot-redis:
condition: service_healthy
env_file:
- config.env
networks:
- penpot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
penpot-exporter:
image: "penpotapp/exporter:2.0.1"
@ -43,6 +59,12 @@ services:
- PENPOT_PUBLIC_URI=http://penpot-frontend
networks:
- penpot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
penpot-postgres:
image: "postgres:15"
@ -54,9 +76,23 @@ services:
- POSTGRES_DB=penpot
- POSTGRES_USER=penpot
- POSTGRES_PASSWORD=pa55w0rd
networks:
- penpot
healthcheck:
test: ["CMD", "pg_isready", "-U", "penpot"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
penpot-redis:
image: redis:7
restart: always
networks:
- penpot
- penpot
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s