-#################################-
----------PostgreSQL+TimescaleDB----------
-#################################-
效果图
[root@localhost zbx]# docker images;
REPOSITORY TAG IMAGE ID CREATED SIZE
zabbix-web-nginx-pgsql centos-6.0-latest 204ddb3e23f7 46 minutes ago 725MB
zabbix-server-pgsql centos-6.0-latest 19d42ab122cf 47 minutes ago 818MB
zabbix-web-service centos-6.0-latest 8b936636cc27 49 minutes ago 732MB
zabbix-java-gateway centos-6.0-latest dc8575a04e12 49 minutes ago 720MB
zabbix-agent2 centos-6.0-latest 0c6e6bd42f73 50 minutes ago 615MB
zabbix-snmptraps centos-6.0-latest 13123a27119f 50 minutes ago 601MB
zabbix-build-pgsql centos-6.0-latest 6630e59e9193 52 minutes ago 2.55GB
zabbix-build-base centos-6.0-latest 5460fe43ebaa About an hour ago 1.9GB
quay.io/centos/centos stream8 474adbdf7b6c About an hour ago 537MB
timescale/timescaledb-ha pg15-latest ffc7613d8998 8 hours ago 2.89GB
[root@localhost zbx]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b2a3f32e2248 zabbix-web-nginx-pgsql:centos-6.0-latest "docker-entrypoint.sh" 42 minutes ago Up 41 minutes (healthy) 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp zbx-zabbix-web-nginx-pgsql-1
5303582906f4 zabbix-server-pgsql:centos-6.0-latest "/usr/bin/tini -- /u…" 42 minutes ago Up 42 minutes 0.0.0.0:10051->10051/tcp, :::10051->10051/tcp zbx-zabbix-server-1
ecc52b37902c timescale/timescaledb-ha:pg15-latest "/docker-entrypoint.…" 42 minutes ago Up 40 minutes 8008/tcp, 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp, 8081/tcp zbx-postgres-server-1
bba05b797288 zabbix-java-gateway:centos-6.0-latest "docker-entrypoint.s…" 42 minutes ago Up 42 minutes zbx-zabbix-java-gateway-1
6be63a4c0914 zabbix-agent2:centos-6.0-latest "/usr/bin/tini -- /u…" 42 minutes ago Up 42 minutes 0.0.0.0:10050->10050/tcp, :::10050->10050/tcp, 31999/tcp zbx-zabbix-agent2-1
6cc89931b1a9 zabbix-web-service:centos-6.0-latest "docker-entrypoint.s…" 42 minutes ago Up 42 minutes zbx-zabbix-web-service-1
0bb61b1332af zabbix-snmptraps:centos-6.0-latest "/usr/sbin/snmptrapd…" 42 minutes ago Up 42 minutes 0.0.0.0:162->1162/udp, :::162->1162/udp zbx-zabbix-snmptraps-1
[root@localhost zbx]#
集成全中文模板
执行如下命令进行git安装
yum -y install git
执行如下命令克隆docker安装中文版zabbix项目
ZBX_SOURCES=https://NoYoWiFi:agp_66c5fe553765c414b8de0886f668b5f7@codeup.aliyun.com/636defa3f003e3b7bb5cae22/zabbix_docker/zabbix_chinese.git
ZBX_VERSION=6.0-latest
ZBX_NAME=zabbix_docker-${ZBX_VERSION}
ZBX_DIR=/opt
cd ${ZBX_DIR}
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch ${ZBX_DIR}/${ZBX_NAME}
chmod 755 -R ${ZBX_DIR}/${ZBX_NAME}
cd ${ZBX_DIR}/${ZBX_NAME}
执行如下命令安装docker服务
sh update_config-entrypoint_pgsql.sh init
执行如下命令下载docker镜像
sh update_config-entrypoint_pgsql.sh down
执行如下命令初始化配置文件
sh update_config-entrypoint_pgsql.sh cp
执行如下命令启动docker容器
sh update_config-entrypoint_pgsql.sh start
打开网页输入服务器IP地址访问zabbix
用户名: Admin
密码: zabbix
存储位置
映射的卷位于当前文件夹的zbx_env目录
全文完结