-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (84 loc) · 1.98 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
version: "3.6"
services:
rabbitmq:
image: rabbitmq
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
hot-potato:
build:
context: .
target: development
image: hot-potato
api:
image: hot-potato:latest
working_dir: /services/api
command: ["npm", "run", "start"]
container_name: hot-potato-api
ports:
- '3001:3001'
volumes:
- './services/api/src:/services/api/src:delegated'
environment:
NODE_ENV: "development"
HOST: 0.0.0.0
PORT: 3001
RMQ_URL: amqp://rabbitmq:5672
RMQ_QUEUE: potato
depends_on:
- rabbitmq
player1:
image: hot-potato:latest
working_dir: /services/player
command: ["npm", "run", "start"]
container_name: hot-potato-player1
ports:
- '4001:4001'
volumes:
- './services/player/src:/services/player/src:delegated'
environment:
NODE_ENV: "development"
HOST: 0.0.0.0
PORT: 4001
RMQ_URL: amqp://rabbitmq:5672
RMQ_QUEUE: potato
INSTANCE: palyer1
depends_on:
- rabbitmq
player2:
image: hot-potato:latest
working_dir: /services/player
command: ["npm", "run", "start"]
container_name: hot-potato-player2
ports:
- '4002:4002'
volumes:
- './services/player/src:/services/player/src:delegated'
environment:
NODE_ENV: "development"
HOST: 0.0.0.0
PORT: 4002
RMQ_URL: amqp://rabbitmq:5672
RMQ_QUEUE: potato
INSTANCE: palyer2
depends_on:
- rabbitmq
player3:
image: hot-potato:latest
working_dir: /services/player
command: ["npm", "run", "start"]
container_name: hot-potato-player3
ports:
- '4003:4003'
volumes:
- './services/player/src:/services/player/src:delegated'
environment:
NODE_ENV: "development"
HOST: 0.0.0.0
PORT: 4003
RMQ_URL: amqp://rabbitmq:5672
RMQ_QUEUE: potato
INSTANCE: palyer3
depends_on:
- rabbitmq