1
0

feat:更新zabbix-mysql 6.4.13

This commit is contained in:
okxlin
2024-04-03 13:31:22 +08:00
parent ca3deefe77
commit d430ca9a34
7 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
CONTAINER_NAME="zabbix-server"
PANEL_APP_PORT_HTTP2="10051"
PANEL_APP_PORT_HTTP="40047"
PANEL_DB_HOST="127.0.0.1"
ZABBIX_DB_PORT="3306"
PANEL_DB_NAME="zabbix"
PANEL_DB_USER="zabbix"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"

View File

@@ -0,0 +1,62 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: ZABBIX_DB_PORT
key: mysql
type: param
value: "3306"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: zabbix
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: zabbix
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 10051
edit: true
envKey: PANEL_APP_PORT_HTTP2
labelEn: Gateway port
labelZh: 网关端口
required: true
rule: paramPort
type: number
- default: 40047
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,52 @@
version: "3"
services:
zabbix-server-mysql:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP2}:10051"
environment:
- DB_SERVER_HOST=${PANEL_DB_HOST}
- DB_SERVER_PORT=${ZABBIX_DB_PORT}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
- ZBX_JAVAGATEWAY=zabbix-java-gateway
image: zabbix/zabbix-server-mysql:alpine-6.4.13
depends_on:
- zabbix-java-gateway
labels:
createdBy: Apps
zabbix-java-gateway:
container_name: ${CONTAINER_NAME}-gateway
restart: always
networks:
- 1panel-network
image: zabbix/zabbix-java-gateway:alpine-6.4.13
labels:
createdBy: Apps
zabbix-web-nginx-mysql:
container_name: ${CONTAINER_NAME}-nginx
restart: always
networks:
- 1panel-network
environment:
- ZBX_SERVER_HOST=zabbix-server-mysql
- DB_SERVER_HOST=${PANEL_DB_HOST}
- MYSQL_DATABASE=${PANEL_DB_NAME}
- MYSQL_USER=${PANEL_DB_USER}
- MYSQL_PASSWORD=${PANEL_DB_USER_PASSWORD}
ports:
- ${PANEL_APP_PORT_HTTP}:8080
image: zabbix/zabbix-web-nginx-mysql:alpine-6.4.13
depends_on:
- zabbix-server-mysql
labels:
createdBy: Apps
networks:
1panel-network:
external: true