forked from mkrupczak3/CS4504-PROJ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (40 loc) · 929 Bytes
/
docker-compose.yaml
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
version: '3'
networks:
# pdc-net: # Docker-only overlay network
# ipam:
# config:
# - subnet: 172.23.0.0/16
bridge-net: # Only needed if need to talk to external network
driver: bridge
ipam:
config:
- subnet: 172.24.0.0/16
services:
serverrouter:
build: .
command: ["TCPServerRouter"]
networks:
# pdc-net:
# ipv4_address: 172.23.0.5
bridge-net: # external network bridge, makes ports available on host
ipv4_address: 172.24.0.5
ports:
- "5555:5555"
- "5555:5555/udp"
# server:
# build: .
# command: ["TCPServer"]
# depends_on:
# - serverrouter
# networks:
# pdc-net:
# ipv4_address: 172.23.0.6
# client:
# build: .
# command: ["TCPClient", "file.txt"]
# depends_on:
# - serverrouter
# - server
# networks:
# pdc-net:
# ipv4_address: 172.23.0.7