postgress version connect
This commit is contained in:
parent
a5b6e6a0b0
commit
c96d0ada03
|
|
@ -2,5 +2,5 @@
|
|||
__pycache__/
|
||||
*.pyc
|
||||
.aider*
|
||||
workspaces/
|
||||
workspaces/*
|
||||
qdrant_storage/
|
||||
2
app.py
2
app.py
|
|
@ -15,7 +15,7 @@ from chainlit.data.sql_alchemy import SQLAlchemyDataLayer
|
|||
DATABASE_URL = "postgresql+asyncpg://user:password@postgres:5432/ai_station"
|
||||
|
||||
# Attiviamo il salvataggio su DB
|
||||
cl.data_layer = SQLAlchemyDataLayer(url=DATABASE_URL)
|
||||
cl.data_layer = SQLAlchemyDataLayer(conn_string=DATABASE_URL)
|
||||
# -
|
||||
|
||||
# --- CONFIGURAZIONE HARD-CODED ---
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ services:
|
|||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- ai-station-net
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
chainlit
|
||||
chainlit==1.3.2
|
||||
ollama
|
||||
asyncpg
|
||||
psycopg2-binary
|
||||
qdrant-client
|
||||
qdrant-client>=1.10.0
|
||||
sqlalchemy
|
||||
Loading…
Reference in New Issue