-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (65 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
65 lines (65 loc) · 1.51 KB
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
version: '3'
services:
counter1:
build:
context: services/counter
ports:
- "1231:1234"
expose:
- "1234"
environment:
NAME: "counter1"
AMQP_URI: "amqp://rabbitmq:5672"
REDIS_URI: "amqp://redis:6379"
depends_on:
- "rabbitmq"
- "redis"
counter2:
build:
context: services/counter
ports:
- "1232:1234"
expose:
- "1234"
environment:
NAME: "counter2"
AMQP_URI: "amqp://rabbitmq:5672"
REDIS_URI: "amqp://redis:6379"
depends_on:
- "rabbitmq"
- "redis"
counter3:
build:
context: services/counter
ports:
- "1233:1234"
expose:
- "1234"
environment:
NAME: "counter3"
AMQP_URI: "amqp://rabbitmq:5672"
REDIS_URI: "amqp://redis:6379"
depends_on:
- "rabbitmq"
- "redis"
balancer:
build:
context: services/balancer
ports:
- "1234:8000"
depends_on:
- "counter1"
- "counter2"
- "counter3"
rabbitmq:
image: "rabbitmq:3.7-management-alpine"
expose:
- "5672"
ports:
- "15673:15672"
redis:
image: "redis:5.0-alpine"
expose:
- "6379"
ports:
- "6378:6379"