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

@@ -15,9 +15,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
- ./zbx_env/var/lib/zabbix/snmptraps:/var/lib/zabbix/snmptraps:ro
links:
- postgres-server:postgres-server
- zabbix-java-gateway:zabbix-java-gateway
ulimits:
nproc: 65535
nofile:
@@ -39,8 +36,6 @@ services:
- POSTGRES_PASSWORD
depends_on:
- postgres-server
- zabbix-java-gateway
- zabbix-snmptraps
networks:
zbx_net_backend:
aliases:
@@ -67,6 +62,8 @@ services:
zabbix-proxy-sqlite3:
build: ./proxy-sqlite3/centos
image: zabbix-proxy-sqlite3:centos-local
profiles:
- all
ports:
- "10061:10051"
volumes:
@@ -78,9 +75,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:
@@ -118,6 +112,8 @@ services:
zabbix-proxy-mysql:
build: ./proxy-mysql/centos
image: zabbix-proxy-mysql:centos-local
profiles:
- all
ports:
- "10071:10051"
volumes:
@@ -129,9 +125,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:
@@ -176,12 +169,11 @@ services:
zabbix-web-apache-pgsql:
build: ./web-apache-pgsql/centos
image: zabbix-web-apache-pgsql:centos-local
profiles:
- all
ports:
- "80:8080"
- "443:8443"
links:
- postgres-server:postgres-server
- zabbix-server:zabbix-server
- "8081:8080"
- "8443:8443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
@@ -231,11 +223,8 @@ services:
build: ./web-nginx-pgsql/centos
image: zabbix-web-nginx-pgsql:centos-local
ports:
- "8081:8080"
- "8443:8443"
links:
- postgres-server:postgres-server
- zabbix-server:zabbix-server
- "80:8080"
- "443:8443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
@@ -284,6 +273,9 @@ services:
zabbix-agent:
build: ./agent/centos
image: zabbix-agent:centos-local
profiles:
- full
- all
ports:
- "10050:10050"
volumes:
@@ -293,8 +285,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:
@@ -324,6 +314,9 @@ services:
zabbix-java-gateway:
build: ./java-gateway/centos
image: zabbix-java-gateway:centos-local
profiles:
- full
- all
ports:
- "10052:10052"
deploy:
@@ -354,6 +347,9 @@ services:
cache_from:
- centos:centos7
image: zabbix-snmptraps:centos-local
profiles:
- full
- all
ports:
- "162:1162/udp"
volumes:
@@ -380,6 +376,8 @@ services:
mysql-server:
image: mysql:5.7
profiles:
- all
command:
- mysqld
- --character-set-server=utf8
@@ -419,6 +417,8 @@ services:
db_data_mysql:
image: busybox
profiles:
- all
volumes:
- ./zbx_env/var/lib/mysql:/var/lib/mysql:rw