mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-08 23:00:10 +01:00
Added Zabbix web service image
This commit is contained in:
parent
d6e4e6d576
commit
1bbe37282f
2
.env_srv
2
.env_srv
@ -58,3 +58,5 @@ ZBX_ENABLE_SNMP_TRAPS=true
|
||||
# ZBX_VAULTDBPATH=
|
||||
# ZBX_VAULTURL=https://127.0.0.1:8200
|
||||
# VAULT_TOKEN=
|
||||
# ZBX_STARTREPORTWRITERS=0
|
||||
# ZBX_WEBSERVICEURL=http://zabbix-web-service:10053/report
|
||||
|
@ -378,6 +378,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:alpine-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-alpine
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -410,6 +410,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/alpine
|
||||
cache_from:
|
||||
- alpine:3.13
|
||||
image: zabbix-web-service:alpine-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-alpine
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -374,6 +374,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:alpine-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-alpine
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -406,6 +406,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/alpine
|
||||
cache_from:
|
||||
- alpine:3.13
|
||||
image: zabbix-web-service:alpine-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-alpine
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "alpine"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -378,6 +378,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:centos-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-centos
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -410,6 +410,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/centos
|
||||
cache_from:
|
||||
- centos:centos8
|
||||
image: zabbix-web-service:centos-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-centos
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -374,6 +374,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:centos-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-centos
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -406,6 +406,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/centos
|
||||
cache_from:
|
||||
- centos:centos8
|
||||
image: zabbix-web-service:centos-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-centos
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "centos"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -370,6 +370,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:ubuntu-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-ubuntu
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -404,6 +404,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/ubuntu
|
||||
cache_from:
|
||||
- ubuntu:focal
|
||||
image: zabbix-web-service:ubuntu-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-ubuntu
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
command:
|
||||
|
@ -368,6 +368,37 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
zabbix-web-service:
|
||||
image: zabbix/zabbix-web-service:ubuntu-trunk
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-ubuntu
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -400,6 +400,41 @@ services:
|
||||
com.zabbix.component: "snmptraps"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
zabbix-web-service:
|
||||
build:
|
||||
context: ./web-service/ubuntu
|
||||
cache_from:
|
||||
- ubuntu:focal
|
||||
image: zabbix-web-service:ubuntu-local
|
||||
profiles:
|
||||
- full
|
||||
- all
|
||||
ports:
|
||||
- "10053:10053"
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 256M
|
||||
env_file:
|
||||
- .env_web_service
|
||||
networks:
|
||||
zbx_net_backend:
|
||||
aliases:
|
||||
- zabbix-web-service
|
||||
- zabbix-web-service-ubuntu
|
||||
stop_grace_period: 5s
|
||||
labels:
|
||||
com.zabbix.description: "Zabbix web service"
|
||||
com.zabbix.company: "Zabbix LLC"
|
||||
com.zabbix.component: "web-service"
|
||||
com.zabbix.os: "ubuntu"
|
||||
|
||||
mysql-server:
|
||||
image: mysql:8.0
|
||||
profiles:
|
||||
|
@ -51,6 +51,7 @@ RUN set -eux && \
|
||||
libevent \
|
||||
libssh \
|
||||
fping \
|
||||
file-libs \
|
||||
libxml2 \
|
||||
mysql \
|
||||
mysql-libs \
|
||||
|
@ -50,6 +50,7 @@ RUN set -eux && \
|
||||
libevent \
|
||||
libssh \
|
||||
fping \
|
||||
file-libs \
|
||||
libxml2 \
|
||||
net-snmp-libs \
|
||||
OpenIPMI-libs \
|
||||
|
@ -339,6 +339,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
@ -65,6 +65,7 @@ RUN set -eux && \
|
||||
openssl-libs \
|
||||
pcre \
|
||||
zlib \
|
||||
file-libs \
|
||||
unixODBC && \
|
||||
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH_SUFFIX}" -o /sbin/tini && \
|
||||
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${ARCH_SUFFIX}.asc" -o /tmp/tini.asc && \
|
||||
|
@ -336,6 +336,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
@ -336,6 +336,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
@ -372,6 +372,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
@ -49,6 +49,7 @@ RUN set -eux && \
|
||||
dnf -y install epel-release && \
|
||||
dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \
|
||||
fping \
|
||||
file-libs \
|
||||
iputils \
|
||||
tzdata \
|
||||
traceroute \
|
||||
|
@ -372,6 +372,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
@ -372,6 +372,10 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "DBPassword" "${DB_SERVER_ZBX_PASS}"
|
||||
fi
|
||||
|
||||
update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}"
|
||||
: ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"}
|
||||
update_config_var $ZBX_CONFIG "WebServiceURL" "${ZBX_WEBSERVICEURL}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageURL" "${ZBX_HISTORYSTORAGEURL}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageTypes" "${ZBX_HISTORYSTORAGETYPES}"
|
||||
update_config_var $ZBX_CONFIG "HistoryStorageDateIndex" "${ZBX_HISTORYSTORAGEDATEINDEX}"
|
||||
|
Loading…
Reference in New Issue
Block a user