feat: add Docker deployment for the bot

- Add Dockerfile for Python 3.13 container
- Update docker-compose with naliia_bot service
- Add DB_HOST config for container networking
- Add .dockerignore for build optimization
- Update README with Docker documentation
This commit is contained in:
2026-03-08 00:18:51 -05:00
parent c5022ff210
commit 3431a37119
6 changed files with 103 additions and 14 deletions

View File

@@ -18,5 +18,29 @@ services:
env_file:
- .env
naliia_bot:
build:
context: .
dockerfile: Dockerfile
ports:
- "8010:8010"
depends_on:
messages_db:
condition: service_healthy
env_file:
- .env
environment:
- LLM_MODEL=${LLM_MODEL:-deepseek}
- POSTGRES_HOST=messages_db
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-messages}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8010/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
data: