update
This commit is contained in:
23
zabbix/Demo/SingleNode/README.md
Normal file
23
zabbix/Demo/SingleNode/README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 部署 zabbix
|
||||
|
||||
- 根据实际环境修改
|
||||
- docker-compose.yml
|
||||
|
||||
- 创建目录
|
||||
```
|
||||
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
|
||||
```
|
||||
|
||||
- 启动
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
- 查看容器日志,直至出现 "Starting Zabbix Server. Zabbix 5.0.9 (revision {ZABBIX_REVISION}).",表示 zabbix server 启动完成
|
||||
```
|
||||
docker-compose logs -f zabbix
|
||||
```
|
||||
|
||||
- 浏览器访问 http://x.x.x.x/zabbix/,打开 zabbix 安装界面,__不要做任何修改,一直点击 "下一步"__,直至出现登陆界面
|
||||
- 默认用户名和密码: Admin/zabbix
|
||||
|
28
zabbix/Demo/SingleNode/docker-compose.yml
Normal file
28
zabbix/Demo/SingleNode/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
zabbix:
|
||||
image: harbor.colben.cn/general/zabbix
|
||||
container_name: zabbix
|
||||
restart: "on-failure"
|
||||
stop_grace_period: 1m
|
||||
ports:
|
||||
- 80:80
|
||||
- 10051:10051
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./mysql/db
|
||||
target: /var/lib/mysql
|
||||
- type: bind
|
||||
source: ./mysql/log
|
||||
target: /var/log/mysql
|
||||
- type: bind
|
||||
source: ./php7/log
|
||||
target: /var/log/php7
|
||||
- type: bind
|
||||
source: ./nginx/log
|
||||
target: /var/log/nginx
|
||||
- type: bind
|
||||
source: ./zabbix/log
|
||||
target: /var/log/zabbix
|
||||
|
Reference in New Issue
Block a user