-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
53 lines (50 loc) · 960 Bytes
/
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
version: '3'
services:
node1:
container_name: node1
build: .
volumes:
- .:/app
ports:
- "3001:3001"
environment:
- HTTP_HOST=0.0.0.0
- DEBUG=app*
tty: true
command: /app/node_modules/.bin/nodemon src/index.js
node2:
container_name: node2
build: .
volumes:
- .:/app
ports:
- "3002:3001"
environment:
- PEERS=ws://node1:6001
- HTTP_HOST=0.0.0.0
- DEBUG=app*
links:
- node1
depends_on:
- node1
tty: true
command: /app/node_modules/.bin/nodemon src/index.js
node3:
container_name: node3
build: .
volumes:
- .:/app
ports:
- "3003:3001"
environment:
- PEERS=ws://node1:6001,ws://node2:6001
- HTTP_HOST=0.0.0.0
- DEBUG=app*
links:
- node1
- node2
depends_on:
- node1
- node2
tty: true
command: /app/node_modules/.bin/nodemon src/index.js