init
This commit is contained in:
0
zabbix/.env
Normal file
0
zabbix/.env
Normal file
72
zabbix/docker-compose.yml
Normal file
72
zabbix/docker-compose.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
|
||||
mysql:
|
||||
image: mysql:latest
|
||||
container_name: zabbix-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=zabbixrootsqlsecret
|
||||
- MYSQL_USER=zabbix
|
||||
- MYSQL_PASSWORD=zabbixsqlsecret
|
||||
- MYSQL_DATABASE=zabbix
|
||||
- DB_SERVER_HOST=zabbix-db
|
||||
- DB_SERVER_PORT=3306
|
||||
- ZBX_DEBUGLEVEL=3
|
||||
- ZBX_SERVER_HOST=zabbix-server
|
||||
cap_add:
|
||||
- SYS_NICE # CAP_SYS_NICE
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
|
||||
server:
|
||||
image: zabbix/zabbix-server-mysql
|
||||
container_name: zabbix-server
|
||||
ports:
|
||||
- "10051:10051"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SERVER_NAME=server
|
||||
- MYSQL_ROOT_PASSWORD=zabbixrootsqlsecret
|
||||
- MYSQL_USER=zabbix
|
||||
- MYSQL_PASSWORD=zabbixsqlsecret
|
||||
- MYSQL_DATABASE=zabbix
|
||||
- DB_SERVER_HOST=zabbix-db
|
||||
- DB_SERVER_PORT=3306
|
||||
- ZBX_DEBUGLEVEL=3
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
agent:
|
||||
image: zabbix/zabbix-agent2
|
||||
container_name: zabbix-agent2
|
||||
privileged: true
|
||||
environment:
|
||||
- ZBX_SERVER_HOST=zabbix-server
|
||||
- ZBX_HOSTNAME=zabbix-agent2
|
||||
- ZBX_STARTAGENTS=3
|
||||
restart: unless-stopped
|
||||
|
||||
web:
|
||||
image: zabbix/zabbix-web-apache-mysql
|
||||
container_name: zabbix-web
|
||||
ports:
|
||||
- "8085:8080"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_USER=zabbix
|
||||
- MYSQL_PASSWORD=zabbixsqlsecret
|
||||
- MYSQL_DATABASE=zabbix
|
||||
- DB_SERVER_HOST=zabbix-db
|
||||
- DB_SERVER_PORT=3306
|
||||
- ZBX_DEBUGLEVEL=3
|
||||
- ZBX_SERVER_HOST=zabbix-server
|
||||
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
9
zabbix/stack.env
Normal file
9
zabbix/stack.env
Normal file
@@ -0,0 +1,9 @@
|
||||
MYSQL_ROOT_PASSWORD=zabbixrootsqlsecret
|
||||
MYSQL_USER=zabbix
|
||||
MYSQL_PASSWORD=zabbixsqlsecret
|
||||
MYSQL_DATABASE=zabbix
|
||||
DB_SERVER_HOST=zabbix-db
|
||||
DB_SERVER_PORT=3306
|
||||
ZBX_DEBUGLEVEL=3
|
||||
ZBX_SERVER_HOST="zabbix-server"
|
||||
PHP_TZ="Europe/Berlin"
|
Reference in New Issue
Block a user