zabbix 4.0.3 use docker-compose deploy
CentOS 7 使用 docker-compose 部署zabbix 4.0.3
docker-compose.yaml 配置文件如下:
version: '3.1' services: db: image: mysql command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-time-zone='+08:00' restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: "MysqlPasswd" MYSQL_ALLOW_EMPTY_PASSWORD: "no" ports: - 9306:3306 volumes: - /data/dockerdata/db/data:/var/lib/mysql - /data/dockerdata/db/conf:/etc/mysql/conf.d - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime server: image: zabbix/zabbix-server-mysql:centos-4.0.3 restart: unless-stopped environment: DB_SERVER_HOST: db MYSQL_USER: root MYSQL_PASSWORD: MysqlPasswd ZBX_TIMEOUT: 30 ports: - 9051:10051 - 8444:10051 volumes: - /data/dockerdata/server/alertscripts:/usr/lib/zabbix/alertscripts - /data/dockerdata/server/externalscripts:/usr/lib/zabbix/externalscripts - /data/dockerdata/server/modules:/var/lib/zabbix/modules - /data/dockerdata/server/enc:/var/lib/zabbix/enc - /data/dockerdata/server/ssh_keys:/var/lib/zabbix/ssh_keys - /data/dockerdata/server/ssl/certs:/var/lib/zabbix/ssl/certs - /data/dockerdata/server/ssl/keys:/var/lib/zabbix/ssl/keys - /data/dockerdata/server/ssl/ssl_ca:/var/lib/zabbix/ssl/ssl_ca - /data/dockerdata/server/snmptraps:/var/lib/zabbix/snmptraps - /data/dockerdata/server/mibs:/var/lib/zabbix/mibs - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime web: image: zabbix/zabbix-web-nginx-mysql:centos-4.0.3 restart: unless-stopped environment: DB_SERVER_HOST: db MYSQL_USER: root MYSQL_PASSWORD: MysqlPasswd ZBX_SERVER_HOST: server PHP_TZ: "Asia/Shanghai" ZBX_SERVER_NAME: aws ports: - 8081:80 volumes: - /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime
另:zabbix docker安装,中文无法显示的问题
相关推荐
insularisland 2020-08-15
源码物语 2020-08-03
阿亮 2020-06-22
服务器开发的日子 2020-06-14
xzkjgw 2020-06-09
SoarFly00 2020-06-08
CharlesYooSky 2020-06-05
spb 2020-06-02
89284553 2020-06-02
CosEmon 2020-05-31
Neptune 2020-05-31
韩学敏 2020-05-19
heniancheng 2020-05-17
yishouwangnian 2020-05-10
SIMONDOMAIN 2020-05-09
aolishuai 2020-05-01