-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.15 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
version: '3.5'
services:
zabbix-server:
image: zabbix/zabbix-server-mysql:ubuntu-6.2-latest
ports:
- "10051:10051"
volumes:
- /etc/localtime:/etc/localtime:ro
env_file:
- ./.env_db_mysql
- ./.env_web
depends_on:
- mysql-server
stop_grace_period: 30s
sysctls:
- net.ipv4.ip_local_port_range=1024 65000
- net.ipv4.conf.all.accept_redirects=0
- net.ipv4.conf.all.secure_redirects=0
- net.ipv4.conf.all.send_redirects=0
zabbix-web-nginx-mysql:
image: zabbix/zabbix-web-nginx-mysql:ubuntu-6.2-latest
ports:
- "3080:8080"
- "443:8443"
volumes:
- /etc/localtime:/etc/localtime:ro
env_file:
- ./.env_db_mysql
- ./.env_web
depends_on:
- mysql-server
- zabbix-server
stop_grace_period: 10s
sysctls:
- net.core.somaxconn=65535
mysql-server:
image: mysql:8.0-oracle
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_bin
- --default-authentication-plugin=mysql_native_password
volumes:
- ./data:/var/lib/mysql:rw
env_file:
- ./.env_db_mysql