-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-windows.template
72 lines (72 loc) · 2.04 KB
/
docker-compose-windows.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
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: mariadb
env_file: ./secrets.env
domainname: ${DOMAINNAME}
hostname: ${FIRSTNAME}-sql
volumes:
- sql-data:/var/lib/mysql
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
- ./${FIRSTNAME}-container/perfdata:/var/lib/pnp4nagios/perfdata
- ./${FIRSTNAME}-container/etc/pnp4nagios:/etc/pnp4nagios
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
volumes:
sql-data: