From f77f06a3bd4c1ef6e45b69a64959b55164bf4512 Mon Sep 17 00:00:00 2001 From: UncleCode Date: Sat, 16 Nov 2024 16:43:31 +0800 Subject: [PATCH] feat(deploy): add deployment configuration and templates for crawl4ai --- .do/app.yaml | 19 +++++++++++++++++++ .do/deploy.template.yaml | 22 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .do/app.yaml create mode 100644 .do/deploy.template.yaml diff --git a/.do/app.yaml b/.do/app.yaml new file mode 100644 index 00000000..7e11aab7 --- /dev/null +++ b/.do/app.yaml @@ -0,0 +1,19 @@ +alerts: +- rule: DEPLOYMENT_FAILED +- rule: DOMAIN_FAILED +name: crawl4ai +region: nyc +services: +- dockerfile_path: Dockerfile + github: + branch: main + deploy_on_push: true + repo: unclecode/crawl4ai + health_check: + http_path: /health + http_port: 11235 + instance_count: 1 + instance_size_slug: basic-xs + name: web + routes: + - path: / \ No newline at end of file diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml new file mode 100644 index 00000000..ab76795d --- /dev/null +++ b/.do/deploy.template.yaml @@ -0,0 +1,22 @@ +spec: + name: crawl4ai + services: + - name: crawl4ai + git: + branch: main + repo_clone_url: https://github.com/unclecode/crawl4ai.git + dockerfile_path: Dockerfile + http_port: 11235 + instance_count: 1 + instance_size_slug: basic-xs + health_check: + http_path: /health + envs: + - key: INSTALL_TYPE + value: "basic" + - key: PYTHON_VERSION + value: "3.10" + - key: ENABLE_GPU + value: "false" + routes: + - path: / \ No newline at end of file