-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
81 lines (74 loc) · 2.31 KB
/
docker-compose.yaml
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: "3.4"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
portainer:
image: portainer/portainer
container_name: portainer
ports:
- "9000:9000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- VIRTUAL_HOST=portainer.SEUDOMINIO.com.br
zabbix-app:
image: zabbix/zabbix-web-nginx-mysql
container_name: zabbix-app
environment:
- TZ=America/Sao_Paulo
- PHP_TZ=America/Sao_Paulo
- DB_SERVER_HOST=mysql-server
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix_pwd
- MYSQL_ROOT_PASSWORD=root_pwd
- VIRTUAL_HOST=zabbix.SEUDOMINIO.com.br
links:
- 'mysql-server:mysql'
- 'zabbix-server:zabbix-server'
ports:
- '8080:80'
mysql-server:
image: mysql:5.7
container_name: mysql-server
volumes:
- /var/zabbix/data/mysql:/var/lib/mysql
ports:
- '3306:3306'
environment:
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix_pwd
- MYSQL_ROOT_PASSWORD=root_pwd
zabbix-java-gateway:
image: zabbix/zabbix-java-gateway
container_name: zabbix-java-gateway
zabbix-server:
image: zabbix/zabbix-server-mysql
container_name: zabbix-server
environment:
- DB_SERVER_HOST=mysql-server
- MYSQL_DATABASE=zabbix
- MYSQL_USER=zabbix
- MYSQL_PASSWORD=zabbix_pwd
- MYSQL_ROOT_PASSWORD=root_pwd
- ZBX_JAVAGATEWAY=zabbix-java-gateway
links:
- 'mysql-server:mysql'
- 'zabbix-java-gateway:zabbix-java-gateway'
ports:
- '10051:10051'
zabbix-snmptraps:
image: zabbix/zabbix-snmptraps
container_name: zabbix-snmptraps
volumes:
- /var/zabbix/protocolo/snmptraps:/var/lib/zabbix/snmptraps:rw
- /var/zabbix/protocolo/mibs:/usr/share/snmp/mibs:ro
ports:
- '162:162/udp'