-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yml
70 lines (70 loc) · 1.72 KB
/
docker-compose.dev.yml
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
version: '3.8'
services:
postgres:
image: postgres:13-alpine
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_DB: db
POSTGRES_PASSWORD: pass
ports:
- "5432:5432"
shm_size: 256mb
monitor:
build: .
env_file:
- .env
ports:
- "3333:3333"
volumes:
- ./config.yml:/app/config.yml
fix_block_timestamps:
build: .
entrypoint: ["./fix_block_timestamps"]
env_file:
- .env
volumes:
- ./config.yml:/app/config.yml
reprocess_block_range:
build: .
entrypoint: [ "./reprocess_block_range" ]
env_file:
- .env
volumes:
- ./config.yml:/app/config.yml
grafana:
image: grafana/grafana:8.1.5
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/etc/grafana/dashboards
- grafana-storage:/var/lib/grafana
environment:
PG_HOST: 'postgres:5432'
PG_USER: 'read_user'
PG_PASSWORD: 'read_user_pass'
PG_DB: 'db'
PROM_USER: 'admin'
PROM_HOST: 'http://prometheus:9090'
ports:
- "3000:3000"
prometheus:
image: prom/prometheus:v2.30.0
volumes:
- ./prometheus:/etc/prometheus
- prom-storage:/prometheus
command: ["--config.file=/etc/prometheus/prometheus.yml", "--web.enable-lifecycle"]
ports:
- "9090:9090"
alertmanager:
image: prom/alertmanager:v0.23.0
command: ["--config.file=/etc/prometheus/alertmanager.yml", "--storage.path=/alertmanager", "--web.external-url=http://localhost:9093"]
volumes:
- ./prometheus:/etc/prometheus
- alertmanager-storage:/alertmanager
ports:
- "9093:9093"
volumes:
db:
grafana-storage:
prom-storage:
alertmanager-storage: