feat: improve docker containerization and add LLM timeout

This commit is contained in:
2026-04-05 00:30:59 -05:00
parent c985b357b7
commit bd0be9845f
4 changed files with 9 additions and 3 deletions

View File

@@ -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}