File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1- version : ' 3.2'
2-
31services :
42 bd :
53 container_name : analitica-bd
@@ -14,20 +12,31 @@ services:
1412 volumes :
1513 - ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
1614 - ./datos:/var/lib/postgresql/data
15+ healthcheck :
16+ test : ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
17+ interval : 5s
18+ timeout : 5s
19+ retries : 5
1720
1821 umami :
1922 container_name : analitica-app
20- image : ghcr.io/umami-software/umami:postgresql- latest
23+ image : ghcr.io/umami-software/umami:latest
2124 restart : unless-stopped
25+ init : true
2226 networks :
2327 - red-analitica
2428 ports :
2529 - ${PUERTO}:3000
2630 depends_on :
27- - bd
31+ db :
32+ condition : service_healthy
2833 environment :
2934 DATABASE_URL : postgresql://${BD_USUARIO}:${BD_CLAVE}@bd:5432/${BD_NOMBRE}
30- DATABASE_TYPE : postgresql
31- HASH_SALT : ${SALT}
35+ APP_SECRET : ${SALT}
36+ healthcheck :
37+ test : ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
38+ interval : 5s
39+ timeout : 5s
40+ retries : 5
3241networks :
33- red-analitica:
42+ red-analitica :
Original file line number Diff line number Diff line change 1- v2.17.0
1+ v3.0.3
You can’t perform that action at this time.
0 commit comments