-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1020 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
54
55
56
57
58
59
60
61
62
63
64
version: '3.5'
services:
host1:
image: node
container_name: Host1
tty: true
command:
- /bin/bash
- -c
- |
cd data
node server.js
networks:
WSnetwork:
ipv4_address: 10.0.0.2
volumes:
- ./host1:/data
host2:
image: node
container_name: Host2
tty: true
command:
- /bin/bash
- -c
- |
cd /data
node server.js
networks:
WSnetwork:
ipv4_address: 10.0.0.3
volumes:
- ./host2:/data
host3:
image: node
container_name: Host3
tty: true
command:
- /bin/bash
- -c
- |
cd /data
node server.js
networks:
WSnetwork:
ipv4_address: 10.0.0.4
volumes:
- ./host3:/data
networks:
WSnetwork:
driver: bridge
ipam:
config:
- subnet: "10.0.0.0/24"
networks:
WSnetwork:
driver: bridge
ipam:
config:
- subnet: "10.0.0.0/24"