Last active
September 8, 2023 09:19
-
-
Save saasscaleup/04f47a3c2a8ce4b93f509c1322b25899 to your computer and use it in GitHub Desktop.
How to instal and run auto-gpt with docker
This file contains 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
i update u uwu~
<3