forked from channeldorg/channeld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (132 loc) · 3.38 KB
/
docker-compose.yml
File metadata and controls
132 lines (132 loc) · 3.38 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3'
services:
channeld:
build: .
image: channeld/channeld
volumes:
- channeld-vol:/var/log/channeld
depends_on:
- grafana
ports:
- "12108:12108"
expose:
- "8080"
- "11288"
entrypoint: [
"./app",
"-cfsm=config/client_authoratative_fsm.json",
"-sfsm=config/server_authoratative_fsm.json",
"-logfile=/var/log/channeld/{time}.log",
"-profile=cpu",
"-profilepath=/var/log/channeld",
"-ct=1"]
tps-channeld:
build:
context: .
dockerfile: examples/channeld-ue-tps/Dockerfile
image: channeld/tps-channeld
volumes:
- channeld-vol:/var/log/channeld
depends_on:
- grafana
ports:
- "12108:12108"
expose:
- "8080"
- "11288"
entrypoint: [
"./app",
"-dev",
"-cfsm=../../config/client_authoratative_fsm.json",
"-sfsm=../../config/server_authoratative_fsm.json",
"-chs=../../config/channel_settings_hifi.json",
"-loglevel=0",
"-logfile=/var/log/channeld/{time}.log",
# "-profile=cpu",
# "-profilepath=/var/log/channeld",
"-ct=0"]
tps-server:
image: channeld/tps-server
depends_on:
- tps-channeld
volumes:
- tps-server-vol:/LinuxServer/ChanneldIntegration/Saved
expose:
- "8081"
environment:
- CHANNELD_ADDR=tps-channeld
entrypoint: "./ChanneldIntegrationServer.sh -server -log -metrics -trace -tracefile=/LinuxServer/ChanneldIntegration/Saved/test.utrace channeldServerAddr=tps-channeld"
tps-client:
image: channeld/tps-client
depends_on:
- tps-server
expose:
- "8081"
environment:
- CHANNELD_ADDR=tps-channeld
# entrypoint: "./ChanneldIntegration.sh 127.0.0.1 -log channeldClientAddr=tps-channeld -nullrhi -FPS=5"
deploy:
resources:
limits:
cpus: "1.0"
memory: 1024M
scale: 3
tanks:
image: channeld/tanks
depends_on:
- channeld
environment:
- CHANNELD_IP=channeld
entrypoint: ["./server.x86_64", "-sa", "channeld", "-spawnai", "500"]
chat:
profiles:
- donotstart
build:
context: .
dockerfile: examples/chat-rooms/Dockerfile
image: channeld/chat
volumes:
- chat-vol:/var/log/chat
depends_on:
- grafana
deploy:
resources:
limits:
cpus: "3.5"
ports:
- "8080:8080"
- "12108:12108"
expose:
- "8080"
- "12108"
entrypoint: ["./app", "-profile=cpu", "-dev", "-profilepath=/var/log/chat", "-ct=0", "-chs=../../config/channel_settings_lofi.json"]
grafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- "3000:3000"
expose:
- "3000"
prometheus:
image: prom/prometheus
entrypoint: /bin/sh -c
command: |
'sh -s <<EOF
cat > ./prometheus.yml <<EON
global:
scrape_interval: 2s
evaluation_interval: 2s
scrape_configs:
- job_name: channeld
static_configs:
- targets: ['channeld:8080', 'chat:8080', 'tps-channeld:8080', 'tps-server:8081', 'tps-client:8081']
EON
prometheus --config.file=./prometheus.yml
EOF'
ports:
- "9090:9090"
volumes:
channeld-vol:
chat-vol:
tps-server-vol: