moxitech-gzb/docker-compose.yaml

41 lines
849 B
YAML
Raw Normal View History

2024-10-23 04:51:07 +07:00
# TEST
version: '3.7'
services:
zabbix-server:
image: zabbix/zabbix-server-mysql:alpine-6.0-latest
environment:
- DB_SERVER_HOST=zabbix-mysql
- MYSQL_USER=root
- MYSQL_PASSWORD=zabbix_pwd
- MYSQL_DATABASE=zabbix
depends_on:
- zabbix-mysql
ports:
- "10051:10051"
zabbix-web:
image: zabbix/zabbix-web-nginx-mysql:alpine-6.0-latest
environment:
- DB_SERVER_HOST=zabbix-mysql
- MYSQL_USER=root
- MYSQL_PASSWORD=zabbix_pwd
- MYSQL_DATABASE=zabbix
- ZBX_SERVER_HOST=zabbix-server
depends_on:
- zabbix-server
ports:
- "8080:8080"
zabbix-mysql:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=zabbix_pwd
- MYSQL_DATABASE=zabbix
volumes:
- zabbix-mysql-data:/var/lib/mysql
volumes:
zabbix-mysql-data: