-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from l3vels/build/docker
Build: add postgres to docker compose, add azure pubsub and zep configuration to docs
- Loading branch information
Showing
20 changed files
with
96 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
# Run pipenv shell and install after changing this file. See README file for more info. | ||
ENV=local | ||
|
||
NODE_ENV=local | ||
OPENAI_API_KEY= | ||
|
||
# Connects to the db service in docker-compose.yml by default | ||
DB_NAME=l3-db | ||
DB_HOST=localhost | ||
DB_HOST=db | ||
DB_PORT=5432 | ||
DB_USER=postgres | ||
DB_PASS=123456 | ||
|
||
SENTRY_DSN= | ||
DB_PASS=postgres | ||
|
||
# Azure pubsub used for chat. Quickstart: https://github.com/l3vels/L3AGI/blob/main/docs/azure.md | ||
AZURE_PUBSUB_CONNECTION_STRING= | ||
AZURE_PUBSUB_HUB_NAME=hub | ||
|
||
|
||
# Configure Zep for chat memory. Quickstart: https://docs.getzep.com/deployment/quickstart/ | ||
ZEP_API_URL= | ||
ZEP_API_KEY= | ||
|
||
SERPAPI_API_KEY= | ||
|
||
LANGCHAIN_TRACING_V2=true | ||
LANGCHAIN_ENDPOINT= | ||
LANGCHAIN_API_KEY= | ||
LANGCHAIN_PROJECT= | ||
|
||
TEST_USER_EMAIL= | ||
TEST_USER_PASSWORD= | ||
|
||
JWT_EXPIRY=120 | ||
JWT_SECRET_KEY=l3_secret | ||
|
||
# Configure for GitHub OAuth | ||
GITHUB_CLIENT_ID= | ||
GITHUB_CLIENT_SECRET= | ||
|
||
FRONTEND_URL=http://localhost:3000 | ||
|
||
GOOGLE_API_KEY=YOUR_GOOGLE_API_KEY | ||
|
||
# Configure AWS for S3 storage | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_REGION= | ||
AWS_S3_BUCKET= | ||
|
||
# Optionally configure sentry for error tracking | ||
SENTRY_DSN= | ||
|
||
# Optionally configure LangSmith to log the runs | ||
LANGCHAIN_TRACING_V2=true | ||
LANGCHAIN_ENDPOINT= | ||
LANGCHAIN_API_KEY= | ||
LANGCHAIN_PROJECT= | ||
|
||
# Optionally configure to run tests on the user | ||
TEST_USER_EMAIL= | ||
TEST_USER_PASSWORD= | ||
|
||
FRONTEND_URL=http://localhost:3000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ----** Task Container Environment Config **---- | ||
NODE_ENV="development" | ||
ENV="development" | ||
|
||
task_desired_count = 2 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ----** Task Container Environment Config **---- | ||
NODE_ENV="development" | ||
ENV="development" | ||
|
||
task_desired_count = 2 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ----** Task Container Environment Config **---- | ||
NODE_ENV="production" | ||
ENV="production" | ||
|
||
task_desired_count = 2 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# DB Config | ||
variable "NODE_ENV" { | ||
variable "ENV" { | ||
type = string | ||
} | ||
variable "OPENAI_API_KEY" { | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
# Setup Azure Web PubSub Service from UI | ||
|
||
1. Create a free account on [Azure](https://azure.microsoft.com/en-us/free). | ||
|
||
2. Go to [Azure Portal](https://portal.azure.com/#home) | ||
|
||
3. Create Web PubSub Service on [Azure Portal](https://portal.azure.com/#create/Microsoft.AzureWebPubSub) | ||
Choose first option: | ||
![Create PubSub](assets/azure/create-pubsub-1.png) | ||
|
||
4. Create a new resource group and choose name for your pubsub service: | ||
![Create new resource group](assets/azure/create-pubsub-2.png) | ||
|
||
5. Click `Review + create` | ||
|
||
6. Wait for validation and then click `Create` | ||
![Create resource](assets/azure/create-pubsub-3.png) | ||
|
||
7. After creating, you will be redirected. Click `Go to resource`: | ||
![Go to resource](assets/azure/create-pubsub-4.png) | ||
|
||
8. Go to `Keys` and copy `Connection string`: | ||
![Get connection string](assets/azure/create-pubsub-5.png) | ||
|
||
9. Paste `Connection string` in `.env` file. | ||
|
||
10. Go to `Settings` and create new `Hub`: | ||
![Create Hub](assets/azure/create-pubsub-6.png) | ||
![Save Hub](assets/azure/create-pubsub-7.png) | ||
|
||
11. Paste hub name in `.env` file. | ||
|
||
For more information visit: [Azure Web PubSub Service](https://docs.microsoft.com/en-us/azure/azure-web-pubsub/overview) |