-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (80 loc) · 2.43 KB
/
docker-compose.yaml
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
version: "3.7"
services:
icinga2:
build:
dockerfile: icinga.Dockerfile
context: .
restart: always
container_name: icinga2
hostname: icinga2
environment:
- MYSQL_ROOT_PASSWORD=root
- ICINGA2_FEATURE_GRAPHITE=1
- ICINGA2_FEATURE_GRAPHITE_HOST=graphite
- ICINGA2_FEATURE_GRAPHITE_PORT=2003
- ICINGA2_FEATURE_GRAPHITE_URL=http://graphite
# - ICINGA2_FEATURE_GRAPHITE_SEND_THRESHOLDS=true
# - ICINGA2_FEATURE_GRAPHITE_SEND_METADATA=false
#- ICINGAWEB2_ADMIN_USER=icingaadmin
#- ICINGAWEB2_ADMIN_PASS=icinga
#- ICINGA2_USER_FULLNAME=Icinga2 Docker Monitoring Instance
- DEFAULT_MYSQL_HOST=mysql
- DOCKER_MODE=true
volumes:
- ./data/icinga/cache:/var/cache/icinga2
- ./data/icinga/certs:/etc/apache2/ssl
- ./data/icinga/etc/icinga2:/etc/icinga2
- ./data/icinga/etc/icingaweb2:/etc/icingaweb2
- ./data/icinga/lib/icinga:/var/lib/icinga2
- ./data/icinga/lib/php/sessions:/var/lib/php/sessions
- ./data/icinga/log/apache2:/var/log/apache2
- ./data/icinga/log/icinga2:/var/log/icinga2
- ./data/icinga/log/icingaweb2:/var/log/icingaweb2
- ./data/icinga/log/mysql:/var/log/mysql
- ./data/icinga/spool:/var/spool/icinga2
- ./data/ilert-icinga:/tmp/ilert-icinga
ports:
- "4080:80"
- "4443:443"
- "5665:5665"
networks:
- icinga
graphite:
image: graphiteapp/graphite-statsd:latest
container_name: graphite
hostname: graphite-dev-local
restart: on-failure:5
volumes:
- ./data/graphite/conf:/opt/graphite/conf
- ./data/graphite/storage:/opt/graphite/storage
- ./data/graphite/log/graphite:/var/log/graphite
- ./data/graphite/log/carbon:/var/log/carbon
networks:
- icinga
mysql:
image: mariadb
container_name: mariadb
hostname: mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./data/mysql/data:/var/lib/mysql
networks:
- icinga
cron:
build:
dockerfile: cron.Dockerfile
context: .
container_name: cron
restart: always
environment:
- CRON_STRINGS=* * * * * root /tmp/ilert/ilert-icinga.py --mode send --endpoint https://api.ilert.com
- DOCKER_MODE=true
volumes:
- ./ilert-icinga.py:/tmp/ilert/ilert-icinga.py
- ./data/ilert-icinga:/tmp/ilert-icinga
networks:
- icinga
networks:
icinga: {}