-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-grafana.template
75 lines (75 loc) · 2.14 KB
/
docker-compose-grafana.template
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
version: "2"
services:
core:
image: rahonabe/icinga2-core
env_file: ./secrets.env
links:
- sql
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-core
build:
context: ./core
ports:
- 5665:5665
volumes:
- ./${FIRSTNAME}-container/cache/icinga2:/var/cache/icinga2
- ./${FIRSTNAME}-container/etc/icinga2:/etc/icinga2
- ./${FIRSTNAME}-container/lib/icinga2:/var/lib/icinga2
- ./${FIRSTNAME}-container/contrib-plugins:/usr/lib/contrib-plugins
- ./${FIRSTNAME}-container/log/icinga2:/var/log/icinga2
- ./${FIRSTNAME}-container/run/icinga2:/var/run/icinga2
- ./${FIRSTNAME}-container/spool/icinga2:/var/spool/icinga2
- ./${FIRSTNAME}-container/etc/ssmtp:/etc/ssmtp
volumes_from:
- sql
sql:
image: yobasystems/alpine-mariadb
env_file: ./secrets.env
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-sql
volumes:
- ./${FIRSTNAME}-container/lib/mysql:/var/lib/mysql
influxdb:
image: arm32v7/influxdb
env_file: ./secrets.env
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-influxdb
volumes:
- ./${FIRSTNAME}-container/perfdata:/var/lib/influxdb
web:
image: rahonabe/icinga2-web
env_file: ./secrets.env
links:
- sql
- core
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-web
build:
context: ./web
ports:
- 80:80
volumes:
- ./${FIRSTNAME}-container/etc/icingaweb2:/etc/icingaweb2
- ./${FIRSTNAME}-container/webroot_icingaweb2:/usr/share/icingaweb2
- ./${FIRSTNAME}-container/webroot_nagvis:/usr/local/nagvis
- ./${FIRSTNAME}-container/lib/php5/sessions:/var/lib/php5/sessions
- ./${FIRSTNAME}-container/log/apache2:/var/log/apache2
- ./${FIRSTNAME}-container/certs:/etc/apache2/ssl:ro
volumes_from:
- core
- sql
snmptrap:
image: rahonabe/icinga2-snmptrap
env_file: ./secrets.env
links:
- core
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-snmptrap
build:
context: ./snmptrap
ports:
- 162:162/udp
volumes:
- ./${FIRSTNAME}-container/mibs:/mibs
volumes_from:
- core