- Fix pipeline granularity: add market_year to cleaned/serving SQL models - Add DuckDB data access layer with async query functions (analytics.py) - Build Chart.js dashboard: supply/demand, STU ratio, top producers, YoY table - Add country comparison page with multi-select picker - Replace items CRUD with read-only commodity API (list, metrics, countries, CSV) - Configure BeanFlows plan tiers (Free/Starter/Pro) with feature gating - Rewrite public pages for coffee market intelligence positioning - Remove boilerplate items schema, update health check for DuckDB - Add test suite: 139 tests passing (dashboard, API, billing) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
services:
|
|
app:
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./duckdb:/app/duckdb:ro
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_PATH=/app/data/app.db
|
|
- DUCKDB_PATH=/app/duckdb/local.duckdb
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
worker:
|
|
build: .
|
|
restart: unless-stopped
|
|
command: python -m beanflows.worker
|
|
volumes:
|
|
- ./data:/app/data
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_PATH=/app/data/app.db
|
|
depends_on:
|
|
- app
|
|
|
|
scheduler:
|
|
build: .
|
|
restart: unless-stopped
|
|
command: python -m beanflows.worker scheduler
|
|
volumes:
|
|
- ./data:/app/data
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_PATH=/app/data/app.db
|
|
depends_on:
|
|
- app
|
|
|
|
# Optional: Litestream for backups
|
|
litestream:
|
|
image: litestream/litestream:latest
|
|
restart: unless-stopped
|
|
command: replicate -config /etc/litestream.yml
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./litestream.yml:/etc/litestream.yml:ro
|
|
depends_on:
|
|
- app
|
|
|
|
volumes:
|