forked from tetratelabs/envoy-postgres-stats-example
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
49 lines (44 loc) · 997 Bytes
/
docker-compose.yaml
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
version: "3.7"
services:
postgres:
image: postgres:12
container_name: postgres
environment:
POSTGRES_PASSWORD: postgres
envoy:
image: envoyproxy/envoy-dev:latest
container_name: envoy
volumes:
- ./postgres.yaml:/etc/envoy/postgres.yaml
expose:
- "1999"
- "8001"
ports:
- "1999:1999"
- "8001:8001"
command: "/usr/local/bin/envoy -c /etc/envoy/postgres.yaml -l debug"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus:/etc
expose:
- "9090"
ports:
- "9090:9090"
command: "--config.file=/etc/config.yaml"
grafana:
image: grafana/grafana
container_name: grafana
volumes:
- ./grafana:/etc/grafana
expose:
- "3000"
ports:
- "3000:3000"
traffic:
image: postgres:12
container_name: traffic
volumes:
- ./scripts:/etc/scripts
command: /etc/scripts/traffic.sh > /dev/null 2>&1