This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.89 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
version: '2'
volumes:
zabbix-server-conf:
zabbix-server-scripts:
zabbix-db-data:
zabbix-agentd-conf:
zabbix-agentd-scripts:
# REALTIME EVENT EXPORT SUPPORT.
# event-data:
services:
db:
image: gcavalcante8808/zabbix-db-postgres:4.0.0
restart: always
environment:
POSTGRES_DB: zabbix
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: "zabbix"
volumes:
- zabbix-db-data:/var/lib/postgresql/data
agentd:
image: gcavalcante8808/zabbix-agentd:4.0.0
restart: always
ports:
- 10050:10050
environment:
ZBX_SERVER: 127.0.0.1
REMOTE_COMMAND: 1
PROOT_NO_SECCOMP: 1
network_mode: host
pid: host
privileged: true
volumes:
- /sys:/sys
- /sys/fs/cgroup:/sys/fs/cgroup
- /:/rootfs:ro
- zabbix-agentd-conf:/usr/local/etc/zabbix_agentd.conf.d/
- zabbix-agentd-scripts:/usr/local/share/zabbix/external_scripts/
server:
image: gcavalcante8808/zabbix-server:4.0.0
build: server/
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: zabbix
DB_PASS: zabbix
DB_NAME: zabbix
DB_TYPE: POSTGRESQL
# REALTIME EVENT EXPORT SUPPORT.
# EVENT_EXPORT_DIR: /data
# EVENT_EXPORT_FILESIZE: 100M
volumes:
- zabbix-server-conf:/usr/local/etc/zabbix_server.conf.d
- zabbix-server-scripts:/usr/local/share/zabbix/external_scripts
# REALTIME EVENT EXPORT SUPPORT.
- event-data:/data
ports:
- "10051:10051"
depends_on:
- db
frontend:
image: gcavalcante8808/zabbix-frontend:4.0.0
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: zabbix
DB_PASS: zabbix
DB_NAME: zabbix
DB_TYPE: POSTGRESQL
ZBX_SERVER: server
ZBX_SERVER_PORT: 10051
ZBX_SERVER_NAME: "Zabbix Docker"
ports:
- "80:80"
depends_on:
- db