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