-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (88 loc) · 2.04 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
version: '3.7'
networks:
network-zabbix:
driver: bridge
services:
zabbix-pgsql:
image: postgres:13.5
networks:
- network-zabbix
container_name: zabbix-postgres-db
environment:
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
POSTGRES_DB: zabbix
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
zabbix-server:
image: zabbix/zabbix-server-pgsql:latest
networks:
- network-zabbix
container_name: zabbix-server
environment:
DB_SERVER_HOST: "zabbix-pgsql"
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ports:
- '10051:10051'
links:
- zabbix-pgsql
depends_on:
- zabbix-pgsql
zabbix-web:
image: zabbix/zabbix-web-nginx-pgsql:latest
networks:
- network-zabbix
container_name: zabbix-pgsql
environment:
DB_SERVER_HOST: zabbix-pgsql
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
ZBX_SERVER_HOST: "zabbix-server"
PHP_TZ: Europe/Moscow
ports:
- '80:8080'
- '443:8443'
links:
- zabbix-pgsql
- zabbix-server
depends_on:
- zabbix-pgsql
- zabbix-server
volumes:
- /etc/ssl/nginx:/etc/ssl/nginx:ro
- /var/lib/zabbix/ssl/certs:/var/lib/zabbix/ssl/certs:ro
- /var/lib/zabbix/ssl/keys:/var/lib/zabbix/ssl/keys:ro
grafana:
container_name: grafana
image: grafana/grafana
networks:
- network-zabbix
links:
- zabbix-pgsql
- zabbix-server
restart: always
ports:
- '3000:3000'
environment:
- GF_INSTALL_PLUGINS=alexanderzobnin-zabbix-app
depends_on:
- zabbix-pgsql
- 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=zabbix-server