-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
bd:
container_name: analitica-bd
image: postgres:13.5-alpine
restart: unless-stopped
networks:
- red-analitica
environment:
POSTGRES_DB: ${BD_NOMBRE}
POSTGRES_USER: ${BD_USUARIO}
POSTGRES_PASSWORD: ${BD_CLAVE}
volumes:
- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
- ./datos:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
umami:
container_name: analitica-app
image: ghcr.io/umami-software/umami:latest
restart: unless-stopped
init: true
networks:
- red-analitica
ports:
- ${PUERTO}:3000
depends_on:
bd:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${BD_USUARIO}:${BD_CLAVE}@bd:5432/${BD_NOMBRE}
APP_SECRET: ${SALT}
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
networks:
red-analitica: