forked from vulhub/vulhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (49 loc) · 1 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
version: '2'
services:
server:
image: vulhub/zabbix:3.0.3-server
command: server
depends_on:
- mysql
environment:
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_USER=root
- DATABASE_PASS=root
- DATABASE_NAME=zabbix
agent:
image: vulhub/zabbix:3.0.3-server
command: agent
depends_on:
- mysql
- server
environment:
- ZBX_SRV_HOST=server
- ZBX_SRV_HOST_ACT=server
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_USER=root
- DATABASE_PASS=root
- DATABASE_NAME=zabbix
mysql:
image: mysql:5
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=zabbix
volumes:
- ./database/:/docker-entrypoint-initdb.d/
web:
image: vulhub/zabbix:3.0.3-web
depends_on:
- server
- mysql
environment:
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_USER=root
- DATABASE_PASS=root
- DATABASE_NAME=zabbix
- ZBX_SRV_HOST=server
- ZBX_SRV_PORT=10051
ports:
- "8080:80"