-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.51 KB
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
version: "3.9"
services:
zabbix-mariadb:
image: mysql:8.0.32-debian
container_name: zabbix-mariadb
hostname: zabbix-mariadb
restart: always
environment:
TZ: "Asia/Krasnoyarsk"
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: zabbix
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- zabbix
volumes:
- ${DATA}:/var/lib/mysql
- ./mysql/my.cnf:/etc/mysql/my.cnf:ro
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
zabbix-server:
image: zabbix/zabbix-server-mysql:6.2.5-alpine
container_name: zabbix-server
hostname: zabbix-server
restart: always
environment:
TZ: "Asia/Krasnoyarsk"
DB_SERVER_HOST: zabbix-mariadb
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- 10051:10051
networks:
- zabbix
depends_on:
- zabbix-mariadb
zabbix-web:
image: zabbix/zabbix-web-nginx-mysql:alpine-6.2.5
container_name: zabbix-web
hostname: zabbix-web
restart: always
environment:
TZ: "Asia/Krasnoyarsk"
DB_SERVER_HOST: zabbix-mariadb
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ZBX_SERVER_HOST: zabbix-server
PHP_TZ: "Asia/Krasnoyarsk"
ports:
- 80:8080
- 443:8443
networks:
- zabbix
depends_on:
- zabbix-mariadb
- zabbix-server
networks:
zabbix:
driver: default