This commit is contained in:
2022-04-18 11:21:20 +08:00
commit 45a7af638f
210 changed files with 8997 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# 部署单进程 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
```

View File

@@ -0,0 +1,20 @@
version: "3.7"
services:
datax:
image: harbor.colben.cn/general/datax
container_name: datax
restart: "no"
stop_grace_period: 1m
network_mode: "host"
volumes:
- type: bind
source: ./datax/job
target: /opt/datax/job
- type: bind
source: ./datax/log
target: /opt/datax/log
- type: bind
source: ./datax/log_perf
target: /opt/datax/log_perf