-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
109 lines (104 loc) · 3.88 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
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
version: '3.7'
services:
consul:
image: consul
environment: [CONSUL_BIND_INTERFACE=eth0]
command: consul agent -dev -client 0.0.0.0
ports:
- 8500:8500
api:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service api --api-tcp-port 8081 --node-id api
ports:
- "8081:8081"
messages-1:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service messages -j api:3500 --initial-stream-config messages:1 --initial-stream-config events:1 --node-id messages-1
messages-2:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service messages -j api:3500 --initial-stream-config messages:1 --initial-stream-config events:1 --node-id messages-2
messages-3:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service messages -j api:3500 --initial-stream-config messages:1 --initial-stream-config events:1 --node-id messages-3
kv-1:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service kv -j api:3500 --node-id kv-1
kv-2:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service kv -j api:3500 --node-id kv-2
kv-3:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service kv -j api:3500 --node-id kv-3
queues-1:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service queues -j api:3500 --node-id queues-1
queues-2:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service queues -j api:3500 --node-id queues-2
queues-3:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service queues -j api:3500 --node-id queues-3
sessions:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service sessions -j api:3500 --node-id sessions
subscriptions:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service subscriptions -j api:3500 --node-id subscriptions
router:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service router -j api:3500 --node-id router
topics:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service topics -j api:3500 --node-id topics
broker:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service broker -j api:3500 --node-id broker
auth:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service auth -j api:3500 --node-id auth
listener-1:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service listener -j api:3500 --node-id listener-1 --listener-tcp-port 1883
ports:
- "1883:1883"
listener-2:
build: { context: . }
environment: [ CONSUL_HTTP_ADDR=consul:8500 ]
volumes: [ ./run_config:/run_config:ro ]
command: service listener -j api:3500 --node-id listener-2 --listener-tcp-port 1884
ports:
- "1884:1884"