-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
51 lines (48 loc) · 1.18 KB
/
docker-compose.test.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
version: "3.7"
services:
server:
image: $CI_REGISTRY_IMAGE/server:$IMAGE_TAG
ports:
- "8000:8080"
networks:
static-network:
ipv4_address: 192.168.3.100
aliases:
- server.mpc.nico.re
client:
image: $CI_REGISTRY_IMAGE/client:$IMAGE_TAG
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
logger:
image: $CI_REGISTRY_IMAGE/logger:$IMAGE_TAG
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
tester:
image: $CI_REGISTRY_IMAGE/tester:$IMAGE_TAG
command: go run tester.go client.mpc.nico.re:8080 server.mpc.nico.re:8080
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