0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-19 13:25:59 -05:00

Merge pull request #5630 from penpot/bameda-fix-docker-concurrency-issues

🐳 Ensure that postgresql and redis are running before starting Penpot services
This commit is contained in:
David Barragán Merino 2025-01-22 10:03:26 +01:00 committed by GitHub
commit 845f187690
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,8 +113,10 @@ services:
- penpot_assets:/opt/data/assets
depends_on:
- penpot-postgres
- penpot-redis
penpot-postgres:
condition: service_healthy
penpot-redis:
condition: service_healthy
networks:
- penpot
@ -195,6 +197,11 @@ services:
penpot-exporter:
image: "penpotapp/exporter:latest"
restart: always
depends_on:
penpot-redis:
condition: service_healthy
networks:
- penpot
@ -211,6 +218,13 @@ services:
restart: always
stop_signal: SIGINT
healthcheck:
test: ["CMD-SHELL", "pg_isready -U penpot"]
interval: 2s
timeout: 10s
retries: 5
start_period: 2s
volumes:
- penpot_postgres_v15:/var/lib/postgresql/data
@ -226,6 +240,14 @@ services:
penpot-redis:
image: redis:7.2
restart: always
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
start_period: 3s
networks:
- penpot