23 lines
No EOL
530 B
YAML
23 lines
No EOL
530 B
YAML
services:
|
|
backend:
|
|
container_name: prod_sage_api
|
|
build:
|
|
context: .
|
|
target: prod
|
|
env_file: .env.production
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./logs:/app/logs
|
|
ports:
|
|
- "8004:8004"
|
|
environment:
|
|
ENV: production
|
|
DEBUG: "false"
|
|
DATABASE_URL: "sqlite+aiosqlite:///./data/sage_prod.db"
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8004/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 40s |