-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (59 loc) · 1.08 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
version: '3.7'
networks:
bsbenchmark:
x-rng-snake-common:
&rng
build: ./starter-snake-go
#depends:
# -
# TODO: healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8000/<some endpoint>"]
# interval: 30s
# timeout: 20s
# retries: 3
services:
rng0:
<<: *rng
ports:
- "127.0.0.1:8000:8000"
environment:
- "PORT=8000"
rng1:
<<: *rng
ports:
- "127.0.0.1:8001:8001"
environment:
- "PORT=8001"
rng2:
<<: *rng
ports:
- "127.0.0.1:8002:8002"
environment:
- "PORT=8002"
rng3:
<<: *rng
ports:
- "127.0.0.1:8003:8003"
environment:
- "PORT=8003"
board:
build: ./board
container_name: bs-board
command: /bin/new-entrypoint.sh
volumes:
- "./docker/board-entrypoint.sh:/bin/new-entrypoint.sh:ro"
ports:
- "127.0.0.1:3000:80"
networks:
- bsbenchmark
benchmark:
build: .
container_name: benchmark
network_mode: "host"
command: bs-benchmark
depends_on:
- rng0
- rng1
- rng2
- rng3
- board