57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
# Docker Compose for Landing Mode
|
|
# Usage: docker-compose -f docker-compose.landing.yml up -d
|
|
# Requires APP_MODE=landing in .env
|
|
|
|
services:
|
|
# HR AI Backend (landing mode - no DB required)
|
|
backend:
|
|
image: cr.yandex/crpnbn7b142t058unrn0/hr-ai-backend:latest
|
|
expose:
|
|
- "8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- APP_MODE=landing
|
|
- APP_ENV=production
|
|
- DEBUG=false
|
|
command: ["uv", "run", "fastapi", "run", "main.py", "--host", "0.0.0.0", "--port", "8000"]
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
|
|
# Frontend
|
|
frontend:
|
|
image: cr.yandex/crpnbn7b142t058unrn0/hr-ai-frontend:latest
|
|
platform: linux/amd64
|
|
expose:
|
|
- "3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./.env.local:/app/.env.local:ro
|
|
|
|
# Caddy reverse proxy with automatic HTTPS
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
depends_on:
|
|
- backend
|
|
- frontend
|
|
environment:
|
|
- DOMAIN=${DOMAIN:-localhost}
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|