-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CAI-185] Chatbot/docker compose with Redis and DynamoDB for local de…
…velopment (#1193) * feat(chatbot): session GSI * feat(chatbot): docker compose * fix(chatbot): dynamodb and redis for local development with docker compose * chore(chatbot):remove duplicate imports * chore(chatbot): linting * fix(chatbot):create index in docker * chore(chatbot): llamaindex index id * fix(chatbot): create vector index with all docs * chore(chatbot): terraform lint * fix(chatbot): terraform syntax * chore(chatbot): remove dynamodb options * chore(chatbot): from global to local secondary index * chore: remove old var * Update apps/chatbot/docker/compose.yaml Co-authored-by: marcobottaro <[email protected]> * chore: remove logs * fix(chatbot): compose vars * Update modules * Update config prompts * Update env example * redis admin port --------- Co-authored-by: marcobottaro <[email protected]> Co-authored-by: mdciri <[email protected]>
- Loading branch information
1 parent
e6b7263
commit 22d370e
Showing
17 changed files
with
1,062 additions
and
755 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
services: | ||
api: | ||
build: | ||
context: .. | ||
dockerfile: docker/app.local.Dockerfile | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ..:/app | ||
- ./files/.aws:/root/.aws | ||
- ../../nextjs-website/out:/app/build-devp/out | ||
depends_on: | ||
redis: | ||
condition: service_started | ||
dynamodb: | ||
condition: service_started | ||
networks: | ||
- ntw | ||
|
||
dynamodb: | ||
image: amazon/dynamodb-local:2.5.2 | ||
environment: | ||
- AWS_ACCESS_KEY_ID=dummy | ||
- AWS_SECRET_ACCESS_KEY=dummy | ||
- AWS_DEFAULT_REGION=local | ||
ports: | ||
- "8000:8000" | ||
networks: | ||
- ntw | ||
|
||
redis: | ||
image: redis/redis-stack:7.2.0-v13 | ||
ports: | ||
- "6379:6379" | ||
- "8001:8001" | ||
networks: | ||
- ntw | ||
|
||
create_index: | ||
build: | ||
context: .. | ||
dockerfile: docker/app.local.Dockerfile | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ..:/app | ||
- ../../nextjs-website/out:/app/build-devp/out | ||
command: "python src/modules/create_vector_index.py --params config/params.yaml" | ||
tty: true | ||
depends_on: | ||
redis: | ||
condition: service_started | ||
networks: | ||
- ntw | ||
|
||
networks: | ||
ntw: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker compose -f docker/compose.yaml -p chatbot up api |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker compose -f docker/compose.yaml -p chatbot up create_index |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker run -it --env-file ./.env fastapi-local bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[profile default] | ||
region = eu-south-1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[default] | ||
aws_access_key_id = 123 | ||
aws_secret_access_key = xyz |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.