forked from jbarratt/envoy_ratelimit_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
75 lines (69 loc) · 1.19 KB
/
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
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
version: "3.7"
services:
envoy:
build:
context: .
dockerfile: Dockerfile-envoy
volumes:
- ./envoy.yaml:/etc/envoy.yaml
networks:
- envoymesh
expose:
- "8001"
- "8010"
ports:
- "8001:8001"
- "8010:8010"
redis:
build:
context: .
dockerfile: Dockerfile-redis
networks:
envoymesh:
aliases:
- redis_server
expose:
- "6379"
ports:
- "6379:6379"
extauth:
build:
context: extauth
networks:
- envoymesh
expose:
- "4000"
ports:
- "4000:4000"
backend:
build:
context: backend
networks:
- envoymesh
expose:
- "8123"
ports:
- "8123:8123"
ratelimit:
build:
context: ratelimit
command: /bin/ratelimit
ports:
- 8080:8080
- 8081:8081
- 6070:6070
depends_on:
- redis
networks:
- envoymesh
volumes:
- ./ratelimit-data:/data
environment:
- USE_STATSD=false
- LOG_LEVEL=debug
- REDIS_SOCKET_TYPE=tcp
- REDIS_URL=redis:6379
- RUNTIME_ROOT=/data
- RUNTIME_SUBDIRECTORY=ratelimit
networks:
envoymesh: {}