/
docker-compose.yml
96 lines (86 loc) · 2.66 KB
/
docker-compose.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
88
89
90
91
92
93
94
95
96
version: '3.4'
x-restart-policy: &restart-policy
restart: unless-stopped
x-common-variables: &common-variables
TZ: Europe/Berlin
x-common-mysql-variables: &common-mysql-variables
MYSQL_DATABASE: opsi
MYSQL_USER: opsi
MYSQL_PASSWORD: eeC9ku3iejeiriSh
x-common-redis-variables: &common-redis-variables
REDIS_PASSWORD: ideeT2aeliesh4oo
x-common-grafana-variables: &common-grafana-variables
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: shai6eeQuuQuuo0a
volumes:
mysql_data:
driver: local
redis_data:
driver: local
opsi_data:
driver: local
grafana_data:
driver: local
services:
mysql:
image: mariadb:10.7
<<: *restart-policy
command: --max_connections=1000 --max_allowed_packet=256M --sort_buffer_size=4M
environment:
<<: [*common-variables, *common-mysql-variables]
MYSQL_ROOT_PASSWORD: oareaNg6Ooz4teik
MYSQL_INITDB_SKIP_TZINFO: 1
volumes:
- mysql_data:/var/lib/mysql
redis:
image: redislabs/redistimeseries:latest
<<: *restart-policy
command: sh -c "redis-server --requirepass $$REDIS_PASSWORD --loadmodule /usr/lib/redis/modules/redistimeseries.so"
environment:
<<: [*common-variables, *common-redis-variables]
volumes:
- redis_data:/data
grafana:
image: grafana/grafana:latest
<<: *restart-policy
environment:
<<: [*common-variables, *common-grafana-variables]
GF_INSTALL_PLUGINS: grafana-simple-json-datasource
GF_SERVER_ROOT_URL: "%(protocol)s://%(domain)s:%(http_port)s/grafana"
volumes:
- grafana_data:/var/lib/grafana
opsi-server:
image: uibmz/opsi-server:4.3
#build: .
<<: *restart-policy
depends_on:
- mysql
- redis
ports:
- "4447:4447"
- "69:69/udp"
hostname: opsi
domainname: domain.tld
environment:
<<: [*common-variables, *common-mysql-variables, *common-grafana-variables, *common-redis-variables]
MYSQL_HOST: mysql
REDIS_HOST: redis
GRAFANA_HOST: grafana
OPSI_ADMIN_PASSWORD: vhahd8usaz
OPSI_ROOT_PASSWORD:
# configserver / depotserver
OPSI_HOST_ROLE: configserver
# Run tftp server and opsipxeconfd? ("true"/"false")
OPSI_TFTPBOOT: "true"
# OPSI_SERVICE_ADDRESS and OPSI_HOST_KEY is needed for depotserver role only
OPSI_SERVICE_ADDRESS:
OPSI_HOST_KEY:
# opsconfd config
OPSICONFD_GRAFANA_EXTERNAL_URL: /grafana
OPSICONFD_LOG_LEVEL: 6
OPSICONFD_LOG_LEVEL_FILE: 4
OPSICONFD_RESTORE_BACKUP_URL: ${OPSICONFD_RESTORE_BACKUP_URL:-}
OPSILICSRV_URL: ${OPSILICSRV_URL:-}
OPSILICSRV_TOKEN: ${OPSILICSRV_TOKEN:-}
volumes:
- opsi_data:/data