-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose_template.yml
49 lines (44 loc) · 1.39 KB
/
docker-compose_template.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
version: '3'
services:
#COMMENT# shoreline:
#COMMENT# build: ./shoreline
#COMMENT# command: "/shoreline -b 0.0.0.0 -f vnc,port=5901 -t arial.ttf -f statistics,listen=0.0.0.0 -w ###WIDTH### -h ###HEIGHT### -d '###DESCRIPTION###'"
#COMMENT# ports:
#COMMENT# - 1234:1234 # pixelflut
#COMMENT# - 1235:1235 # statistics
#COMMENT# - 5901:5901 # vnc
vncmux:
build: ./vncmux
command: "sh -c 'sleep 2 && /vncmux -l 5900 -w ###WIDTH### -h ###HEIGHT### ###HOST### ###PORT_VNC###'"
ports:
- 5900:5900
#COMMENT# links:
#COMMENT# - shoreline
statistics_crawler:
build: ./statistics_crawler
command: "python3 crawl.py ###HOST### ###PORT_STATISTICS### /tmp/pixelflut_statistics.txt"
volumes:
- "./pixelflut_statistics.txt:/tmp/pixelflut_statistics.txt"
#COMMENT# links:
#COMMENT# - shoreline
node_exporter:
image: "prom/node-exporter"
command: "--collector.textfile.directory /var/lib/node_exporter/textfile_collector"
ports:
- 9100:9100
volumes:
- "./pixelflut_statistics.txt:/var/lib/node_exporter/textfile_collector/pixelflut_statistics.prom"
prometheus:
image: "prom/prometheus"
ports:
- 9090:9090
volumes:
- "./prometheus/pixelflut.yml:/etc/prometheus/prometheus.yml"
links:
- node_exporter
grafana:
build: ./grafana
ports:
- 80:3000
links:
- prometheus