Skip to content

Commit

Permalink
🐳 feat: Add Default DB Connection Values to Facilitate Docker Setup (d…
Browse files Browse the repository at this point in the history
…anny-avila#2)

Co-authored-by: fgoiriz <[email protected]>
  • Loading branch information
Fakamoto and fgoiriz authored Mar 20, 2024
1 parent 6deda98 commit 03cd625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified README.md
Binary file not shown.
10 changes: 5 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def get_env_variable(var_name: str, default_value: str = None) -> str:
if not os.path.exists(RAG_UPLOAD_DIR):
os.makedirs(RAG_UPLOAD_DIR, exist_ok=True)

POSTGRES_DB = get_env_variable("POSTGRES_DB")
POSTGRES_USER = get_env_variable("POSTGRES_USER")
POSTGRES_PASSWORD = get_env_variable("POSTGRES_PASSWORD")
DB_HOST = get_env_variable("DB_HOST")
DB_PORT = get_env_variable("DB_PORT")
POSTGRES_DB = get_env_variable("POSTGRES_DB", "mydatabase")
POSTGRES_USER = get_env_variable("POSTGRES_USER", "myuser")
POSTGRES_PASSWORD = get_env_variable("POSTGRES_PASSWORD", "mypassword")
DB_HOST = get_env_variable("DB_HOST", "db")
DB_PORT = get_env_variable("DB_PORT", "5432")
COLLECTION_NAME = get_env_variable("COLLECTION_NAME", "testcollection")

CHUNK_SIZE = int(get_env_variable("CHUNK_SIZE", "1500"))
Expand Down

0 comments on commit 03cd625

Please sign in to comment.