feat: improve docker containerization and add LLM timeout
This commit is contained in:
@@ -10,7 +10,11 @@ services:
|
||||
volumes:
|
||||
- data:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-messages}"]
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-messages}",
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -33,7 +37,7 @@ services:
|
||||
- .env
|
||||
environment:
|
||||
- LLM_MODEL=${LLM_MODEL:-deepseek}
|
||||
- POSTGRES_HOST=messages_db
|
||||
- POSTGRES_HOST=${POSTGRES_HOST:-db}
|
||||
- POSTGRES_USER=${POSTGRES_USER:-postgres}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-messages}
|
||||
|
||||
Reference in New Issue
Block a user