-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (47 loc) · 1.17 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
# https://github.com/zabbix/zabbix-docker
# https://www.zabbix.com/documentation/current/en/manual/installation/containers
# https://hub.docker.com/_/mysql
# https://hub.docker.com/u/zabbix
version: "3"
services:
mysql:
platform: linux/x86_64
image: mysql:8.0
container_name: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123
- MYSQL_DATABASE=zabbix
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
zabbix-server:
platform: linux/x86_64
image: zabbix/zabbix-server-mysql:6.0-ubuntu-latest
container_name: zabbix-server
ports:
- "10051:10051"
environment:
- DB_SERVER_HOST=mysql
- DB_SERVER_PORT=3306
- MYSQL_DATABASE=zabbix
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
depends_on:
- mysql
zabbix-web:
platform: linux/x86_64
image: zabbix/zabbix-web-nginx-mysql:6.0-ubuntu-latest
container_name: zabbix-web
ports:
- "80:80"
environment:
- DB_SERVER_HOST=mysql
- DB_SERVER_PORT=3306
- MYSQL_DATABASE=zabbix
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
- TZ=Asia/Novosibirsk
depends_on:
- mysql
- zabbix-server