-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (67 loc) · 1.19 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
version: '3.8'
services:
server:
build:
context: .
dockerfile: Dockerfile
container_name: server-bjirkom
ports:
- "3001:3001"
networks:
bjirkom:
ipv4_address: 10.5.0.2
command: sh
tty: true
stdin_open: true
client1:
build:
context: .
dockerfile: Dockerfile
container_name: client1-bjirkom
ports:
- "3002:3002"
networks:
bjirkom:
ipv4_address: 10.5.0.3
command: sh
tty: true
stdin_open: true
depends_on:
- server
client2:
build:
context: .
dockerfile: Dockerfile
container_name: client2-bjirkom
ports:
- "3003:3003"
networks:
bjirkom:
ipv4_address: 10.5.0.4
command: sh
tty: true
stdin_open: true
depends_on:
- server
client3:
build:
context: .
dockerfile: Dockerfile
container_name: client3-bjirkom
ports:
- "3004:3004"
networks:
bjirkom:
ipv4_address: 10.5.0.5
command: sh
tty: true
stdin_open: true
depends_on:
- server
networks:
bjirkom:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1