Compare commits

...

2 Commits
main ... health

2 changed files with 45 additions and 6 deletions

View File

@ -59,4 +59,7 @@ docker compose up -d
## LICENSE :necktie:
[License](https://github.com/penpot/penpot/blob/develop/LICENSE)
[License](https://github.com/penpot/penpot/blob/develop/LICENSE)
- the network penpot need to be created first : the process of network creation is not automated

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