2022-04-18 11:21:20 +08:00

24 lines
490 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 部署单进程 datax
- 每天 6 点执行一次,逐个执行 job每个 job 超时时间十分钟
- 根据实际环境修改
- docker-compose.yml
- datax/job/xxxx.json
- 创建目录
```
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
```
- 上传需要的 job 文件到 datax/job/ 下
- 启动
```
docker-compose up -d
```
- 添加定时任务
```
* 6 * * * docker-compose -f /compose/docker-compose.yml up -d
```