-
-
Save 1SHA1024/ee976abc2eef5b9e9764912111d79da0 to your computer and use it in GitHub Desktop.
How to instal and run auto-gpt with docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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