-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
88 lines (81 loc) · 1.73 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
version: '3.1'
services:
zabbix-server:
build: .
volumes:
- ./data/zabbix:/var/lib/zabbix
- ./scripts:/usr/lib/zabbix/alertscripts
ports:
- 10050-10051:10050-10051
depends_on:
- mysql-server
environment:
- DB_SERVER_HOST=mysql-server
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix
- ZBX_DEBUGLEVEL=3
restart: always
# networks:
# - zbxnet
mysql-server:
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix
# networks:
# - zbxnet
zabbix-web:
image: zabbix/zabbix-web-nginx-mysql:alpine-latest
ports:
- 10080:80
depends_on:
- zabbix-server
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix
- ZBX_DEBUGLEVEL=3
restart: always
# networks:
# - zbxnet
zabbix-agent:
image: zabbix/zabbix-agent:alpine-latest
restart: always
environment:
- ZBX_SERVER_HOST=zabbix-server
ports:
- 10060:10050
depends_on:
- zabbix-server
# networks:
# - zbxnet
alerta:
image: alerta/alerta-web
ports:
- 9080:8080
depends_on:
- db
environment:
- DEBUG=1
- DATABASE_URL=mongodb://db:27017/monitoring
- PLUGINS=reject,blackout,zabbix
- INSTALL_PLUGINS=zabbix
- ZABBIX_API_URL=http://zabbix-web
restart: always
# networks:
# - zbxnet
db:
image: mongo
volumes:
- ./data/mongodb:/data/db
restart: always
# networks:
# - zbxnet
#networks:
# zbxnet:
# driver: bridge