diff --git a/README.md b/README.md index 61e8608..6f0601a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,33 @@ # OpenTask +去中心设计的分布式任务调度平台 +# 快速开始 +## 1. 调度中心部署 +1. docker-compose +``` +# 克隆本项目 +cd deploy/docker-compose +docker-compose up -d +``` +2. k8s + +3. docker + +4. 传统手动部署 +## 2. 执行节点开发 +## 高级配置 +1. 使用已有的数据库 -# 开发 -1. 开发数据库 + +# 贡献指南 +1. 开发数据库搭建 ``` docker run -e MYSQL_DATABASE=open_task -e MYSQL_ROOT_PASSWORD=OPEN_TASK_!@# -p 3308:3306 --name=mysql8 -d registry.cn-hangzhou.aliyuncs.com/hgui/mysql:8.4.1 -``` \ No newline at end of file +``` +2. 安装vs2022 +打开`OpenTask.sln`解决方案进行开发 + +# 开源协议 +MIT \ No newline at end of file diff --git a/deploy/docker-compose/docker-compose.yml b/deploy/docker-compose/docker-compose.yml index acfd591..33129fc 100644 --- a/deploy/docker-compose/docker-compose.yml +++ b/deploy/docker-compose/docker-compose.yml @@ -22,7 +22,9 @@ services: volumes: - /apps/opentask/logs:/app/Logs environment: - - "ConnectionStrings__Core=server=localhost;Port=3306;user id=root;database=open_task;pooling=true;password=OPEN_TASK_!@#" + - "ConnectionStrings__Core=server=mysql;Port=3306;user id=root;database=open_task;pooling=true;password=OPEN_TASK_!@#" - "TZ=Asia/Shanghai" ports: - 8080:8080 + links: + - mysql