-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose_example.yml
88 lines (82 loc) · 2.25 KB
/
docker-compose_example.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
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
---
version: '3.3'
services:
database:
image: bodsch/docker-mariadb
container_name: database
hostname: database
environment:
- MARIADB_SYSTEM_USER=root
- MARIADB_ROOT_PASSWORD=vYUQ14SGVrJRi69PsujC
graphite:
restart: always
image: bodsch/docker-graphite:1.1.5
container_name: graphite
hostname: graphite
# the Icinga2 Master
# includes a certificate service to create and provide a icinga certificate
#
icinga2-master:
image: bodsch/docker-icinga2:2.10.2-master
container_name: icinga2-master
hostname: icinga2-master
restart: always
ports:
- 5665:5665
- 8080:8080
environment:
ICINGA2_MASTER: icinga2-master
ICINGA2_API_USERS: root:icinga,dashing:dashing,cert:foo-bar
MYSQL_HOST: database
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASS: vYUQ14SGVrJRi69PsujC
IDO_DATABASE_NAME: icinga2core
IDO_PASSWORD: ido.pass
CARBON_HOST: graphite
links:
- database:database
# icingaweb2
#
icingaweb2:
build:
context: .
dockerfile: Dockerfile
args:
- BUILD_TYPE=${BUILD_TYPE}
- ICINGAWEB_VERSION=${ICINGAWEB_VERSION}
- INSTALL_THEMES=${INSTALL_THEMES}
- INSTALL_MODULES=${INSTALL_MODULES}
container_name: icingaweb2
hostname: icingaweb2
ports:
- 80:80
environment:
ICINGA2_MASTER: icinga2-master
ICINGA2_CMD_API_USER: root
ICINGA2_CMD_API_PASS: icinga
MYSQL_HOST: database
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASS: vYUQ14SGVrJRi69PsujC
GRAPHITE_HOST: graphite
ICINGAWEB2_USERS: 'icinga:icinga,foo:bar'
IDO_DATABASE_NAME: icinga2core
IDO_PASSWORD: ido.pass
ICINGAWEB_DIRECTOR: ${ICINGAWEB_DIRECTOR}
XDEBUG_ENABLED: ${XDEBUG_ENABLED}
# LDAP: '{
# "active_directory": "true",
# "server":"${LDAP_SERVER}",
# "port":"${LDAP_PORT}",
# "bind_dn": "${LDAP_BIND_DN}",
# "bind_password": "${LDAP_BIND_PASSWORD}",
# "base_dn": "${LDAP_BASE_DN}",
# "filter": "${LDAP_FILTER}",
# "role": {
# "groups": "${LDAP_GROUP_NAMES}",
# "permissions": "${GROUP_PERMISSIONS}"
# }
# }'
links:
- icinga2-master
- database
- graphite