Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose so it can run properly now #2966

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't name containers if not necessary, naming containers can create conflicts with other containers of the same name

11 changes: 11 additions & 0 deletions docs/configuration/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ You can specify the memory index for redis using the following:
MEMORY_INDEX=<WHATEVER>
```

#### Using docker-compose
In addition to the above changes in environment variables, change this one:
```sh
REDIS_HOST=redis-stack-server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would explain why you are naming the container. use the service name instead (redis), and docker will take care of the rest

```
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.
Expand Down