calorie-ai-android/web/docker-compose.yml
Daniel 176a9fc3bb
Some checks failed
Android CI / build (push) Successful in 3m0s
Web CI / test (push) Successful in 1m31s
Android Release / release-apk (push) Failing after 45s
Make calorie logging reliable
2026-05-25 03:55:59 +02:00

36 lines
981 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: calorie-ai-postgres
restart: unless-stopped
environment:
POSTGRES_DB: calorie_ai
POSTGRES_USER: calorie_ai
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "127.0.0.1:55432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U calorie_ai -d calorie_ai"]
interval: 5s
timeout: 5s
retries: 20
calorie-ai-web:
build: .
container_name: calorie-ai-web
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- /home/danvics/docker/quiz/backend/.env
environment:
CALORIE_AI_DATABASE_URL: postgresql://calorie_ai@postgres:5432/calorie_ai
LITELLM_API_BASE: https://llm.danvics.com/v1
LITELLM_MODEL: openrouter-claude-haiku-4.5
ports:
- "127.0.0.1:8095:8080"
volumes:
- ./data:/app/data