- SEC filings extraction (10-K, 10-Q, 8-K) - Portfolio analytics with real-time prices - Watchlist management - NextAuth.js authentication - OpenClaw AI integration - PostgreSQL database with auto P&L calculations - Elysia.js backend (Bun runtime) - Next.js 14 frontend (TailwindCSS + Recharts) - Production-ready Docker configurations
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: fiscal
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d fiscal"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
networks:
|
|
- fiscal
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
DATABASE_URL: postgres://postgres:postgres@postgres:5432/fiscal
|
|
PORT: 3001
|
|
JWT_SECRET: change-this-to-a-random-secret-key
|
|
GITHUB_ID: ${GITHUB_ID}
|
|
GITHUB_SECRET: ${GITHUB_SECRET}
|
|
GOOGLE_ID: ${GOOGLE_ID}
|
|
GOOGLE_SECRET: ${GOOGLE_SECRET}
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
healthcheck:
|
|
test: ["CMD", "bun", "run", "-e", "require('http').createServer(() => {}).listen(3001)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- fiscal
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
NEXT_PUBLIC_API_URL: http://backend:3001
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- fiscal
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
fiscal:
|
|
external: true
|