From ae883874afdb7f86a046644398d33873dca77d84 Mon Sep 17 00:00:00 2001 From: Nam Date: Sun, 23 Apr 2023 00:54:08 +0100 Subject: [PATCH 1/2] Update docker-compose file --- docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50fa1a070721..cb9e2fc9e852 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ -# To boot the app run the following: -# docker-compose run auto-gpt +# # To boot the app run the following: +# # docker-compose run auto-gpt version: "3.9" services: @@ -10,9 +10,9 @@ services: env_file: - .env volumes: - - "./autogpt:/home/appuser" - - ".env:/home/appuser/.env" + - "./auto_gpt_workspace:/home/appuser/auto_gpt_workspace" profiles: ["exclude-from-up"] redis: - image: "redis/redis-stack-server:latest" + image: redis/redis-stack-server:latest + container_name: redis-stack-server From 2270f6c9c183a5b71b8a95348152245d60fdf3f1 Mon Sep 17 00:00:00 2001 From: Nam Date: Sun, 23 Apr 2023 01:48:47 +0100 Subject: [PATCH 2/2] Update docs --- docs/configuration/memory.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/configuration/memory.md b/docs/configuration/memory.md index 8ce713be4884..dc45a04a6343 100644 --- a/docs/configuration/memory.md +++ b/docs/configuration/memory.md @@ -47,6 +47,17 @@ You can specify the memory index for redis using the following: MEMORY_INDEX= ``` +#### Using docker-compose +In addition to the above changes in environment variables, change this one: +```sh +REDIS_HOST=redis-stack-server +``` +Then, run this command to run auto-gpt with redis: +```sh +docker-compose run auto-gpt +``` + + ### 🌲 Pinecone API Key Setup Pinecone lets you store vast amounts of vector-based memory, allowing the agent to load only relevant memories at any given time.