-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.25 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
72
version: '3.8'
services:
coredns:
build:
context: ./dnsrp
ports:
- "5983:5983/udp"
- "53:5983/udp"
depends_on:
- gameserver
networks:
- dnsgame-net
gameserver:
build:
context: ./gameserver
ports:
- "8080:8080"
volumes:
- ./data:/litefs
networks:
- dnsgame-net
webinterface:
build:
context: ./webinterface
ports:
- "80:8081"
depends_on:
- gameserver
networks:
- dnsgame-net
# stresstest:
# build:
# context: ./stresstest
# image: stresstest
# depends_on:
# - webinterface
# - gameserver
# - coredns
# environment:
# NUM_PLAYERS: 50
# MAX_WORKERS: 50
# NUM_THREADS: 50
# DNS_SERVER: coredns
# DNS_PORT: 5983
# WEB_INTERFACE_HOST: webinterface:8081
# STARTUP_DELAY: 10
# networks:
# - dnsgame-net
loader:
build:
context: ./loader
depends_on:
- gameserver
- coredns
environment:
DNS_SERVER: coredns
DNS_PORT: 5983
METRICS_URL: http://gameserver:8080/metrics
TARGET_QUEUE_SIZE: 100
ADJUST_INTERVAL: 10s
CHECK_INTERVAL: 5s
networks:
- dnsgame-net
networks:
dnsgame-net:
driver: bridge