ppetermann / Auto-GPT-DockerSetup

A template to *run* Auto-GPT in docker
21 stars 0 forks source link

Auto-GPT-DockerSetup

Welcome to the Auto-GPT-DockerSetup repository! This project aims to provide an easy-to-use starting point for users who want to run Auto-GPT using Docker. This setup separates runtime configuration from the actual Auto-GPT repository by providing a Docker Compose file tailored to running an instance from a Docker image. The official Docker Compose file in the Auto-GPT source includes building the image, but with it always building, not mounting, no solution for plugin-requirements its not very pleasant to maintain.

Note: This template is designed to make it easier for users to get started with Auto-GPT and Docker. It is assumed that users have some experience with Docker and an understanding of what they're doing.

Features

Getting Started, Step by Step:

  1. clone this repository (or download as zip)

  2. remove the .git folder (ideally git init . for your own)

  3. copy your .env file from auto-gpt, if you don't have one yet, use their template

  4. while you can setup a different memory backend, the easiest setup with long term memory is using embedded weaviate, to do so, you can configure it in your .env file as follows:

    MEMORY_BACKEND=weaviate
    WEAVIATE_HOST="127.0.0.1"
    WEAVIATE_PORT=8080
    WEAVIATE_PROTOCOL="http"
    USE_WEAVIATE_EMBEDDED=True
    WEAVIATE_EMBEDDED_PATH="/app/aviate"
  5. if you want to run any plugins

    • copy their zip files into the plugins folder
    • add their requirements to requirements.txt
    • don't forget to add them to the allowed list in your .env
  6. Now we get to the docker part:

    • you will have to build a base image from Auto-GPT's source first, named autogpt-upstream, you can do that by cloning their repo and running docker build -t autogpt-upstream . in the root of the repo
    • the Dockerfile in this repo extends from autogpt-upstream and uses the name my-own-autogpt, so the next step is to build it: docker build -t my-own-autogpt .
  7. let the bot battle begin: docker-compose run --rm auto-gpt -C personas/Entrepeneur-GPT.yml

    • you can add --debug if you want to see more output
    • you can add --continuous (if you dare) to launch in continuous mode

Help!

Shameless plug

Contributors