-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
89 lines (84 loc) · 2.24 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
89 lines (84 loc) · 2.24 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
postgres:
image: postgres:16-alpine
container_name: valida-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: valida_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# 01_ roda primeiro (schema), 02_ roda depois (seed)
- ./infra/banco.sql:/docker-entrypoint-initdb.d/01_schema.sql:ro
- ./infra/banco.seed.sql:/docker-entrypoint-initdb.d/02_seed.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d valida_db"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
redis:
image: redis:7-alpine
container_name: valida-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
minio:
image: minio/minio:latest
container_name: valida-minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001" # Console web: http://localhost:9001
volumes:
- minio_data:/minio_data
command: minio server /minio_data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 10
prometheus:
image: prom/prometheus:latest
container_name: valida-prometheus
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9090:9090"
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
grafana:
image: grafana/grafana:latest
container_name: valida-grafana
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: "false"
DB_NAME: valida_db
DB_USER: postgres
DB_PASSWORD: postgres
ports:
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./infra/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- prometheus
- postgres
volumes:
postgres_data:
redis_data:
minio_data:
prometheus_data:
grafana_data: