Skip to content

Commit 072b70a

Browse files
authored
Merge pull request #57 from ks6088ts-labs/feature/issue-56_postgres
support postgres
2 parents 9c260c4 + 21496e0 commit 072b70a

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ COSMOSDB_PARTITION_KEY="/id"
4343

4444
# SQL Database Settings
4545
SQL_DATABASE_URI="sqlite:///template_langgraph.db"
46+
# SQL_DATABASE_URI="postgresql://user:password@localhost:5432/db"
4647

4748
# ---------
4849
# Utilities

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ services:
1818
- xpack.security.enabled=false
1919
volumes:
2020
- ./assets/es_data:/usr/share/elasticsearch/data
21+
postgres:
22+
image: postgres:17
23+
container_name: postgres
24+
ports:
25+
- 5432:5432
26+
volumes:
27+
- ./assets/postgres_data:/var/lib/postgresql/data
28+
environment:
29+
POSTGRES_USER: user
30+
POSTGRES_PASSWORD: password
31+
POSTGRES_DB: db
32+
restart: always

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies = [
1717
"langgraph>=0.6.2",
1818
"langgraph-supervisor>=0.0.29",
1919
"openai>=1.98.0",
20+
"psycopg2-binary>=2.9.10",
2021
"pydantic-settings>=2.9.1",
2122
"pypdf>=5.9.0",
2223
"python-dotenv>=1.1.0",

uv.lock

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)