-
Notifications
You must be signed in to change notification settings - Fork 4
/
stack.yaml
86 lines (78 loc) · 2.38 KB
/
stack.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
82
83
84
85
86
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
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
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'
deploy:
mode: replicated
replicas: 3
mysql-server:
image: mysql:5.7
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
deploy:
mode: replicated
replicas: 1
zabbix-server:
image: zabbix/zabbix-server-mysql
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'
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
zabbix-snmptraps:
image: zabbix/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'
deploy:
mode: replicated
replicas: 1