Skip to content

Commit

Permalink
Added Zabbix web service image
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Apr 27, 2021
1 parent d6e4e6d commit 1bbe372
Show file tree
Hide file tree
Showing 23 changed files with 426 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env_srv
Original file line number Diff line number Diff line change
Expand Up @@ -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
31 changes: 31 additions & 0 deletions docker-compose_v3_alpine_mysql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
35 changes: 35 additions & 0 deletions docker-compose_v3_alpine_mysql_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 31 additions & 0 deletions docker-compose_v3_alpine_pgsql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
35 changes: 35 additions & 0 deletions docker-compose_v3_alpine_pgsql_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 31 additions & 0 deletions docker-compose_v3_centos_mysql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
35 changes: 35 additions & 0 deletions docker-compose_v3_centos_mysql_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 31 additions & 0 deletions docker-compose_v3_centos_pgsql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
35 changes: 35 additions & 0 deletions docker-compose_v3_centos_pgsql_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
31 changes: 31 additions & 0 deletions docker-compose_v3_ubuntu_mysql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading

0 comments on commit 1bbe372

Please sign in to comment.