6 Star 30 Fork 7

HXSecurity / DongTai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
batect.yml 3.57 KB
一键复制 编辑 原始数据 按行查看 历史
containers:
dongtai-mysql:
image: dongtai/dongtai-mysql-unittest:latest
image_pull_policy: Always
ports:
- "33060:3306"
dongtai-redis:
image: dongtai/dongtai-redis:latest
image_pull_policy: Always
dongtai-server:
build_directory: .
dockerfile: ./Dockerfile
# environment:
# DOC: ${WEBAPI_DOC:-TRUE}
# debug: ${WEBAPI_debug:-true}
# SAVEEYE: ${WEBAPI_SAVEEYE:-TRUE}
# REQUESTLOG: ${WEBAPI_REQUESTLOG:-TRUE}
# CPROFILE: ${WEBAPI_CPROFILE:-TRUE}
# PYTHONAGENT: ${WEBAPI_PYTHON_AGENT:-FALSE}
# PROJECT_NAME: ${WEBAPI_PROJECT_NAME:-LocalWEBAPI}
# PROJECT_VERSION: ${WEBAPI_PROJECT_VERSION:-v1.0}
# LOG_PATH: ${WEBAPI_LOG_PATH:-/tmp/dongtai-agent-python.log}
# DONGTAI_IAST_BASE_URL: ${DONGTAI_IAST_BASE_URL:-https://iast.io/openapi}
# DONGTAI_AGNET_TOKEN: ${DONGTAI_AGNET_TOKEN:-79798299b48839c84886d728958a8f708e119868}
volumes:
- .:/opt/dongtai/
dongtai-web:
image: dongtai/dongtai-web:latest
image_pull_policy: Always
volumes:
- ./deploy/docker-compose/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
dongtai-engine:
build_directory: .
dockerfile: ./Dockerfile
command: worker
volumes:
- .:/opt/dongtai/
dongtai-engine-task:
build_directory: .
dockerfile: ./Dockerfile
command: beat
volumes:
- .:/opt/dongtai/
dependencies:
- dongtai-engine
tasks:
serve:
description: Serve the webapi application standingalone
run:
container: dongtai-server
entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
group: serve
serve-uwsgi:
description: Serve the webapi application standingalone
run:
container: dongtai-server
ports:
- "8000:8000"
group: serve
shell:
description: Serve the webapi application standingalone
run:
container: dongtai-server
entrypoint: /bin/bash
ports:
- "8000:8000"
dependencies:
- dongtai-mysql
- dongtai-redis
group: serve
makemessages:
description: makemessages about i18n
run:
container: dongtai-server
entrypoint: python manage.py makemessages -l zh -l en
ports:
- "8000:8000"
group: tool
serve-with-db:
description: Serve the webapi application with db
run:
container: dongtai-server
# entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
dependencies:
- dongtai-mysql
- dongtai-redis
customise:
dongtai-mysql:
ports:
- "33060:3306"
group: serve
test:
description: run webapi unittest
run:
container: dongtai-server
entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_test.sh
dependencies:
- dongtai-redis
- dongtai-mysql
group: test
integration-test-web:
description: integration with web front-end
run:
container: dongtai-web
dependencies:
- dongtai-mysql
- dongtai-redis
- dongtai-server
group: integration
integration-test-all:
description: integration with all components
run:
container: dongtai-web
dependencies:
- dongtai-mysql
- dongtai-server
- dongtai-redis
- dongtai-engine
- dongtai-engine-task
group: integration
Shell
1
https://gitee.com/HXSecurity/DongTai.git
git@gitee.com:HXSecurity/DongTai.git
HXSecurity
DongTai
DongTai
develop

搜索帮助