-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (90 loc) · 2.05 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
version: '3.1'
networks:
network-zabbix:
driver: bridge
services:
mysql:
container_name: mysql
image: mysql:5.7
networks:
- network-zabbix
ports:
- '3306:3306'
volumes:
- './zabbix/mysql:/var/lib/data'
environment:
- MYSQL_ROOT_PASSWORD=carryontech
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=Red4815@
zabbix-server:
container_name: zabbix-server
image: zabbix/zabbix-server-mysql:ubuntu-5.0.1
networks:
- network-zabbix
links:
- mysql
restart: always
ports:
- '10051:10051'
volumes:
- './zabbix/alertscripts:/usr/lib/zabbix/alertscripts'
environment:
- DB_SERVER_HOST=mysql
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=Red4815@
depends_on:
- mysql
zabbix-frontend:
container_name: zabbix-frontend
image: zabbix/zabbix-web-apache-mysql:ubuntu-5.0.1
networks:
- network-zabbix
links:
- mysql
restart: always
ports:
- '80:8080'
- '443:8443'
environment:
- DB_SERVER_HOST=mysql
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=Red4815@
- PHP_TZ=America/Sao_Paulo
depends_on:
- mysql
grafana:
container_name: grafana
image: grafana/grafana
networks:
- network-zabbix
links:
- mysql
- zabbix-server
restart: always
ports:
- '3000:3000'
environment:
- GF_INSTALL_PLUGINS=alexanderzobnin-zabbix-app
depends_on:
- mysql
- zabbix-server
zabbix-agent:
container_name: zabbix-agent
image: zabbix/zabbix-agent2:alpine-5.0.1
user: root
networks:
- network-zabbix
links:
- zabbix-server
restart: always
privileged: true
volumes:
- /var/run:/var/run
ports:
- '10050:10050'
environment:
- ZBX_HOSTNAME=Zabbix server
- ZBX_SERVER_HOST=192.168.1.246