-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-redis.yaml
86 lines (79 loc) · 1.54 KB
/
docker-compose-redis.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
76
77
78
79
80
81
82
83
84
85
86
services:
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
gateway:
build:
context: .
dockerfile: packages/gateway/Dockerfile
links:
- redis
expose:
- 38080
ports:
- "38080:38080"
environment:
- PORT=38080
- BROKER_TYPE=redis
- BROKER_HOST=redis
- BROKER_PORT=6379
gateway2:
build:
context: .
dockerfile: packages/gateway/Dockerfile
links:
- redis
expose:
- 48080
ports:
- "48080:48080"
environment:
- PORT=48080
- BROKER_TYPE=redis
- BROKER_HOST=redis
- BROKER_PORT=6379
upstream:
build:
context: .
dockerfile: packages/upstream/Dockerfile
links:
- gateway
environment:
- GATEWAY_HOST=gateway
- GATEWAY_PORT=38080
expose:
- 8082
ports:
- "38082:38082"
monitor:
build:
context: .
dockerfile: packages/monitor/Dockerfile
links:
- gateway
environment:
- GATEWAY_HOST=gateway
- GATEWAY_PORT=38080
expose:
- 8081
ports:
- "38081:38081"
demo-typescript:
build:
context: .
dockerfile: packages/demo-typescript/Dockerfile
links:
- gateway
environment:
- GATEWAY_HOST=gateway
- GATEWAY_PORT=38080
demo-nodejs:
build:
context: .
dockerfile: packages/demo-nodejs/Dockerfile
links:
- gateway2
environment:
- GATEWAY_HOST=gateway2
- GATEWAY_PORT=48080