Skip to content

Instantly share code, notes, and snippets.

@saasscaleup
Last active September 8, 2023 09:19
Show Gist options
  • Save saasscaleup/04f47a3c2a8ce4b93f509c1322b25899 to your computer and use it in GitHub Desktop.
Save saasscaleup/04f47a3c2a8ce4b93f509c1322b25899 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
@slapglif
Copy link

slapglif commented Jun 5, 2023

i update u uwu~

#!/bin/bash

// pull docker image
docker pull docker pull significantgravitas/auto-gpt:latest

// Create auto-gpt folder and cd
mkdir auto-gpt && cd auto-gpt 

// Compose docker file and past .yml data below
touch docker-compose.yml && echo '

######### docker-compose.yml - start ##########
version: "3.9"
services:
  auto-gpt:
    image: significantgravitas/auto-gpt:latest
    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 ##########
' >> docker-compose.yml

// Create .env file and save  APIs keys
touch .env && echo "OPENAI_API_KEY=YOURKEYHERE" >> env
// run docker compose

docker-compose run --rm auto-gpt

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment