Skip to content

Commit

Permalink
Merge pull request #1170 from TransformerOptimus/docker-digitalocean
Browse files Browse the repository at this point in the history
Docker digitalocean deployment
  • Loading branch information
Tarraann authored Aug 31, 2023
2 parents 7254014 + e493034 commit 5fc2526
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .do/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
databases:
- engine: PG
name: super-agi-main
num_nodes: 1
size: basic-xs
version: "12"
ingress:
rules:
- component:
name: superagi-backend
match:
path:
prefix: /api
name: superagi
services:
- dockerfile_path: DockerfileRedis
github:
branch: digitalocean-deployment
deploy_on_push: true
repo: TransformerOptimus/SuperAGI
internal_ports:
- 6379
instance_count: 1
instance_size_slug: basic-xs
source_dir: /
name: superagi-redis
- dockerfile_path: Dockerfile
envs:
- key: REDIS_URL
scope: RUN_TIME
value: superagi-redis:6379
- key: DB_URL
scope: RUN_TIME
value: ${super-agi-main.DATABASE_URL}
github:
branch: digitalocean-deployment
deploy_on_push: true
repo: TransformerOptimus/SuperAGI
http_port: 8001
instance_count: 1
instance_size_slug: basic-xs
run_command: /app/entrypoint.sh
source_dir: /
name: superagi-backend
- dockerfile_path: ./gui/DockerfileProd
github:
branch: main
deploy_on_push: true
repo: TransformerOptimus/SuperAGI
http_port: 3000
instance_count: 1
instance_size_slug: basic-xs
source_dir: ./gui
name: superagi-gui
workers:
- dockerfile_path: Dockerfile
envs:
- key: REDIS_URL
scope: RUN_TIME
value: superagi-redis:6379
- key: DB_URL
scope: RUN_TIME
value: ${super-agi-main.DATABASE_URL}
github:
branch: digitalocean-deployment
deploy_on_push: true
repo: TransformerOptimus/SuperAGI
instance_count: 1
instance_size_slug: basic-xs
run_command: celery -A superagi.worker worker --beat --loglevel=info
source_dir: /
name: superagi-celery

73 changes: 73 additions & 0 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
spec:
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
databases:
- engine: PG
name: super-agi-main
num_nodes: 1
size: basic-xs
version: "12"
ingress:
rules:
- component:
name: superagi-backend
match:
path:
prefix: /api
name: superagi
services:
- dockerfile_path: DockerfileRedis
git:
branch: main
repo_clone_url: https://github.com/TransformerOptimus/SuperAGI.git
internal_ports:
- 6379
instance_count: 1
instance_size_slug: basic-xs
source_dir: /
name: superagi-redis
- dockerfile_path: Dockerfile
envs:
- key: REDIS_URL
scope: RUN_TIME
value: superagi-redis:6379
- key: DB_URL
scope: RUN_TIME
value: ${super-agi-main.DATABASE_URL}
git:
branch: main
repo_clone_url: https://github.com/TransformerOptimus/SuperAGI.git
http_port: 8001
instance_count: 1
instance_size_slug: basic-xs
run_command: /app/entrypoint.sh
source_dir: /
name: superagi-backend
- dockerfile_path: ./gui/DockerfileProd
git:
branch: main
repo_clone_url: https://github.com/TransformerOptimus/SuperAGI.git
http_port: 3000
instance_count: 1
instance_size_slug: basic-xs
source_dir: ./gui
name: superagi-gui
workers:
- dockerfile_path: Dockerfile
envs:
- key: REDIS_URL
scope: RUN_TIME
value: superagi-redis:6379
- key: DB_URL
scope: RUN_TIME
value: ${super-agi-main.DATABASE_URL}
git:
branch: main
repo_clone_url: https://github.com/TransformerOptimus/SuperAGI.git
instance_count: 1
instance_size_slug: basic-xs
run_command: celery -A superagi.worker worker --beat --loglevel=info
source_dir: /
name: superagi-celery

1 change: 1 addition & 0 deletions DockerfileRedis
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM redis/redis-stack-server:latest
4 changes: 4 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
<a href="https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=640182997&machine=basicLinux32gb&location=EastUs"> <img src="https://github.com/codespaces/badge.svg"></a><br>Not sure how to setup? <a href="https://youtu.be/yvmNthyWYCE">Learn here</a>
</p>

<br>
<p align="center">
<a href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/TransformerOptimus/SuperAGI/tree/main"> <img src="https://www.deploytodo.com/do-btn-blue.svg"></a><br>Deploy SuperAGI to DigitalOcean with one click.
</p>

## 💡 Features

Expand Down

0 comments on commit 5fc2526

Please sign in to comment.