-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
56 lines (52 loc) · 1.51 KB
/
docker-compose.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
version: "3"
services:
pgprovider:
build: ./provider
environment:
- POSTGRES_PASSWORD=s3cr3t
volumes:
- ./postgresql.conf:/usr/share/postgresql/11/postgresql.conf.sample
- ./pg_hba.conf:/usr/share/postgresql/11/pg_hba.conf.sample
ports:
- 5432:5432
pgsubscriber:
build: ./subscriber
depends_on:
- "pgprovider"
environment:
- POSTGRES_PASSWORD=s3cr3t
volumes:
- ./postgresql.conf:/usr/share/postgresql/11/postgresql.conf.sample
- ./pg_hba.conf:/usr/share/postgresql/11/pg_hba.conf.sample
ports:
- 5433:5432
prometheus:
image: prom/prometheus:v2.28.1
volumes:
- ./prometheus:/etc/prometheus
ports:
- 9090:9090
pgexporter:
environment:
- DATA_SOURCE_NAME=postgresql://postgres:s3cr3t@pgprovider:5432/pg_logical_replication?sslmode=disable,postgresql://postgres:s3cr3t@pgsubscriber:5432/pg_logical_replication_results?sslmode=disable
- PG_EXPORTER_DISABLE_SETTINGS_METRICS=true
- PG_EXPORTER_EXTEND_QUERY_PATH=/config/queries.yaml
image: wrouesnel/postgres_exporter
volumes:
- ./pgexporter/queries.yml:/config/queries.yaml
ports:
- 9187:9187
depends_on:
- pgprovider
- pgsubscriber
grafana:
image: grafana/grafana:8.1.0
ports:
- 3000:3000
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SECURITY_ADMIN_PASSWORD=s3cr3t
- GF_USERS_ALLOW_SIGN_UP=false
depends_on:
- prometheus