Skip to content

Commit

Permalink
update docker compose
Browse files Browse the repository at this point in the history
Updating some of the operations when deploying deepflow with docker compose
  • Loading branch information
1473371932 authored Dec 19, 2024
1 parent 7820ce7 commit d495603
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/zh/02-ce-install/02-all-in-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,26 @@ chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

## 部署 All-in-One DeepFlow

设置环境变量 DOCKER_HOST_IP 为本机物理网卡 IP
下载 All-in-One DeepFlow docker-compose 包

```bash
unset DOCKER_HOST_IP
DOCKER_HOST_IP="10.1.2.3" # FIXME: Deploy the environment machine IP
wget https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/docker-compose/latest/linux/deepflow-docker-compose.tar
tar -zxf deepflow-docker-compose.tar
```

下载并安装 All-in-One DeepFlow
配置`.env`变量

```bash
wget https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/docker-compose/latest/linux/deepflow-docker-compose.tar
tar -zxf deepflow-docker-compose.tar
sed -i "s|FIX_ME_ALLINONE_HOST_IP|$DOCKER_HOST_IP|g" deepflow-docker-compose/docker-compose.yaml
docker compose -f deepflow-docker-compose/docker-compose.yaml up -d
vim ./deepflow-docker-compose/.env
DEEPFLOW_VERSION=v6.6 # FIXME: DeepFlow Version
NODE_IP_FOR_DEEPFLOW=192.168.101.116 # FIXME: Node IP
```

安装 All-in-One DeepFlow

```bash
docker compose -f deepflow-docker-compose/docker-compose.yaml up -d
```
## 部署 DeepFlow Agent

参考 [监控传统服务器](./legacy-host) 为该服务器部署 deepflow-agent。
Expand Down

0 comments on commit d495603

Please sign in to comment.