58ca4e68db
- Go backend API with full CRUD for all modules (CRM, Sales, Finance, HR, Legal, Marketing, Support, Purchase, Inventory, Projects, Automation, Analytics) - Rust analytics service with parallel report generation - C runtime with POSIX shared memory IPC - PostgreSQL schema with 30+ tables, full migrations - Redis cache, sessions, pub/sub - Kafka event streaming with Zookeeper - WebSocket hub for real-time updates - Automation engine with cron jobs, workflows, event triggers - JWT authentication, multi-tenant from start - Docker Compose with all services - Nginx reverse proxy with rate limiting - Integration tests passing - Feature gap analysis against Fortnox/Odoo/Visma Refs: BOC-001
82 lines
1.5 KiB
YAML
82 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:postgres@db:5432/atm_anomaly
|
|
- REDIS_URL=redis://redis:6379/0
|
|
- MODEL_PATH=models/checkpoints/best.pt
|
|
- LOG_LEVEL=info
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./models:/app/models
|
|
- ./output:/app/output
|
|
- ./logs:/app/logs
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
restart: unless-stopped
|
|
networks:
|
|
- atm-network
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
- POSTGRES_DB=atm_anomaly
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./config/database.sql:/docker-entrypoint-initdb.d/01-schema.sql
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- atm-network
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- atm-network
|
|
|
|
dashboard:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dashboard
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- API_URL=http://api:8000
|
|
depends_on:
|
|
- api
|
|
networks:
|
|
- atm-network
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./config/nginx.conf:/etc/nginx/nginx.conf
|
|
- ./src/dashboard:/usr/share/nginx/html/dashboard
|
|
depends_on:
|
|
- api
|
|
- dashboard
|
|
networks:
|
|
- atm-network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
|
|
networks:
|
|
atm-network:
|
|
driver: bridge
|