-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-local.yaml
More file actions
58 lines (52 loc) · 1.17 KB
/
docker-compose-local.yaml
File metadata and controls
58 lines (52 loc) · 1.17 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
volumes:
auth_postgres_volume_local:
prometheus_data:
grafana_data:
networks:
observability-net:
external: true
services:
pg-local:
image: postgres:14-alpine3.17
env_file:
- "local.env"
ports:
- "54321:5432"
volumes:
- auth_postgres_volume_local:/var/lib/postgresql/data
postgresql_exporter:
image: wrouesnel/postgres_exporter:v0.8.0
env_file:
- "local.env"
restart: unless-stopped
environment:
DATA_SOURCE_NAME: ${MIGRATION_DSN}
migrator-local:
build:
context: .
dockerfile: migration_local.Dockerfile
restart: on-failure
env_file:
- "local.env"
environment:
DB_HOST: pg-local
prometheus:
image: prom/prometheus:v2.37.9
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./alerts.yml:/etc/prometheus/alerts.yml
- prometheus_data:/prometheus
networks:
- default
- observability-net
grafana:
image: grafana/grafana-oss:10.0.3
ports:
- "3000:3000"
volumes:
- grafana_data:/var/lib/grafana
networks:
- default
- observability-net