-
Notifications
You must be signed in to change notification settings - Fork 457
/
docker-compose-example.yml
110 lines (104 loc) · 2.61 KB
/
docker-compose-example.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3"
services:
redis:
image: redis:alpine
expose:
- 6379
ports:
- 6379:6379
networks:
- ratelimit-network
statsd:
image: prom/statsd-exporter:v0.18.0
entrypoint: /bin/statsd_exporter
command:
- "--statsd.mapping-config=/etc/statsd-exporter/conf.yaml"
expose:
- 9125
- 9102
ports:
- 9125:9125
- 9102:9102 # Visit http://localhost:9102/metrics to see metrics in Prometheus format
networks:
- ratelimit-network
volumes:
- ./examples/prom-statsd-exporter/conf.yaml:/etc/statsd-exporter/conf.yaml
ratelimit:
image: envoyproxy/ratelimit:master
command: /bin/ratelimit
ports:
- 8080:8080
- 8081:8081
- 6070:6070
depends_on:
- redis
- statsd
networks:
- ratelimit-network
volumes:
- ./examples/ratelimit/config:/data/ratelimit/config
environment:
- USE_STATSD=true
- STATSD_HOST=statsd
- STATSD_PORT=9125
- LOG_LEVEL=debug
- REDIS_SOCKET_TYPE=tcp
- REDIS_URL=redis:6379
- RUNTIME_ROOT=/data
- RUNTIME_SUBDIRECTORY=ratelimit
- RUNTIME_WATCH_ROOT=false
- CONFIG_TYPE=${CONFIG_TYPE:-FILE}
- CONFIG_GRPC_XDS_NODE_ID=test-node-id
- CONFIG_GRPC_XDS_SERVER_URL=ratelimit-xds-config-server:18000
ratelimit-xds-config-server:
image: ratelimit-xds-config-server:latest
build:
context: examples/xds-sotw-config-server
dockerfile: Dockerfile
command: ["-nodeID", "test-node-id", "-port", "18000", "-debug", "true"]
expose:
- 18000
networks:
- ratelimit-network
profiles:
- xds-config
envoy-proxy:
image: envoyproxy/envoy-dev:latest
entrypoint: "/usr/local/bin/envoy"
command:
- "--service-node proxy"
- "--service-cluster proxy"
- "--config-path /etc/envoy/envoy.yaml"
- "--concurrency 1"
- "--mode serve"
- "--log-level info"
volumes:
- ./examples/envoy/proxy.yaml:/etc/envoy/envoy.yaml
networks:
- ratelimit-network
expose:
- "8888"
- "8001"
ports:
- "8888:8888"
- "8001:8001"
envoy-mock:
image: envoyproxy/envoy-dev:latest
entrypoint: "/usr/local/bin/envoy"
command:
- "--service-node mock"
- "--service-cluster mock"
- "--config-path /etc/envoy/envoy.yaml"
- "--concurrency 1"
- "--mode serve"
- "--log-level info"
volumes:
- ./examples/envoy/mock.yaml:/etc/envoy/envoy.yaml
networks:
- ratelimit-network
expose:
- "9999"
ports:
- "9999:9999"
networks:
ratelimit-network: