Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 1SHA1024/ee976abc2eef5b9e9764912111d79da0 to your computer and use it in GitHub Desktop.
Save 1SHA1024/ee976abc2eef5b9e9764912111d79da0 to your computer and use it in GitHub Desktop.
How to instal and run auto-gpt with docker
// pull docker image
docker pull significantgravitas/auto-gpt:0.2.2
// Create auto-gpt folder and cd
mkdir auto-gpt && cd auto-gpt
// Compose docker file and past .yml data below
nano docker-compose.yml
######### docker-compose.yml - start ##########
version: "3.9"
services:
auto-gpt:
image: significantgravitas/auto-gpt:0.2.2
depends_on:
- redis
env_file:
- .env
environment:
MEMORY_BACKEND: ${MEMORY_BACKEND:-redis}
REDIS_HOST: ${REDIS_HOST:-redis}
volumes:
- ./:/app
profiles: ["exclude-from-up"]
redis:
image: "redis/redis-stack-server:latest"
######### docker-compose.yml - end ##########
// Create .env file and save API's keys
nano .env
// Set OpenPI API KEY
OPENAI_API_KEY=""
// run docker compose
docker-compose run --rm auto-gpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment