Added profiles for compose files: default, full, all

This commit is contained in:
Alexey Pustovalov
2021-04-09 10:26:17 -04:00
parent 3337cbdf9f
commit bef77c521b
12 changed files with 276 additions and 278 deletions

View File

@@ -18,9 +18,6 @@ services:
- ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- snmptraps:/var/lib/zabbix/snmptraps:rw
links:
- mysql-server:mysql-server
- zabbix-java-gateway:zabbix-java-gateway
ulimits:
nproc: 65535
nofile:
@@ -43,8 +40,6 @@ services:
- MYSQL_ROOT_PASSWORD
depends_on:
- mysql-server
- zabbix-java-gateway
- zabbix-snmptraps
networks:
zbx_net_backend:
aliases:
@@ -74,6 +69,8 @@ services:
cache_from:
- centos:centos7
image: zabbix-proxy-sqlite3:centos-local
profiles:
- all
ports:
- "10061:10051"
volumes:
@@ -85,9 +82,6 @@ services:
- ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- snmptraps:/var/lib/zabbix/snmptraps:rw
links:
- zabbix-server:zabbix-server
- zabbix-java-gateway:zabbix-java-gateway
ulimits:
nproc: 65535
nofile:
@@ -128,6 +122,8 @@ services:
cache_from:
- centos:centos7
image: zabbix-proxy-mysql:centos-local
profiles:
- all
ports:
- "10071:10051"
volumes:
@@ -139,9 +135,6 @@ services:
- ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- snmptraps:/var/lib/zabbix/snmptraps:rw
links:
- zabbix-server:zabbix-server
- zabbix-java-gateway:zabbix-java-gateway
ulimits:
nproc: 65535
nofile:
@@ -163,6 +156,10 @@ services:
- mysql-server
- zabbix-java-gateway
- zabbix-snmptraps
secrets:
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD
networks:
zbx_net_backend:
aliases:
@@ -184,12 +181,11 @@ services:
cache_from:
- centos:centos7
image: zabbix-web-apache-mysql:centos-local
profiles:
- all
ports:
- "80:8080"
- "443:8443"
links:
- mysql-server:mysql-server
- zabbix-server:zabbix-server
- "8081:8080"
- "8443:8443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
@@ -242,11 +238,8 @@ services:
- centos:centos7
image: zabbix-web-nginx-mysql:centos-local
ports:
- "8081:8080"
- "8443:8443"
links:
- mysql-server:mysql-server
- zabbix-server:zabbix-server
- "80:8080"
- "443:8443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
@@ -298,6 +291,9 @@ services:
cache_from:
- centos:centos7
image: zabbix-agent:centos-local
profiles:
- full
- all
ports:
- "10050:10050"
volumes:
@@ -307,8 +303,6 @@ services:
- ./zbx_env/var/lib/zabbix/modules:/var/lib/zabbix/modules:ro
- ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
- ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
links:
- zabbix-server:zabbix-server
deploy:
resources:
limits:
@@ -341,6 +335,9 @@ services:
cache_from:
- centos:centos7
image: zabbix-java-gateway:centos-local
profiles:
- full
- all
ports:
- "10052:10052"
deploy:
@@ -371,6 +368,9 @@ services:
cache_from:
- centos:centos7
image: zabbix-snmptraps:centos-local
profiles:
- full
- all
ports:
- "162:1162/udp"
volumes: