-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
84 lines (77 loc) · 1.68 KB
/
docker-compose.dev.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
version: "3.7"
services:
server:
container_name: server
build:
context: ./server
dockerfile: Dockerfile
args:
GIT_VERSION: $GIT_VERSION
GIT_DATE: $GIT_DATE
command: go run .
ports:
- "8000:8080"
networks:
static-network:
ipv4_address: 192.168.3.100
aliases:
- server.mpc.nico.re
client:
container_name: client
build:
context: ./client
dockerfile: Dockerfile
args:
GIT_VERSION: $GIT_VERSION
GIT_DATE: $GIT_DATE
command: npx http-server --ext xhtml -d false --log-ip true -p 8080
ports:
- "8001:8080"
networks:
static-network:
ipv4_address: 192.168.3.101
aliases:
- client.mpc.nico.re
depends_on:
- "server"
logger:
container_name: logger
build:
context: ./logger
dockerfile: Dockerfile
args:
GIT_VERSION: $GIT_VERSION
GIT_DATE: $GIT_DATE
command: npx http-server --ext xhtml -d false --log-ip true -p 8080
ports:
- "8002:8080"
networks:
static-network:
ipv4_address: 192.168.3.102
aliases:
- logger.mpc.nico.re
depends_on:
- "server"
tester:
container_name: tester
build:
context: ./tester
dockerfile: Dockerfile
args:
GIT_VERSION: $GIT_VERSION
GIT_DATE: $GIT_DATE
command: go run tester.go
networks:
static-network:
ipv4_address: 192.168.3.103
aliases:
- tester.mpc.nico.re
depends_on:
- "server"
- "client"
- "logger"
networks:
static-network:
ipam:
config:
- subnet: 192.168.3.0/24