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