Files
SQL/docker-compose.yml
T
Alphaeus Mote b30733ccad Add complete financial fraud detection database with Docker, schema, data generation, and SQL exercises
- Docker setup with PostgreSQL 16 and DB-UI web interface
- Comprehensive 20+ table schema with fraud detection patterns
- Idempotent shell scripts for data generation (no Python dependency)
- Realistic geographic data (100 US cities, 210 world cities)
- 5M+ transactions with embedded fraud patterns (velocity, geographic, structuring, etc.)
- Progressive SQL exercises from beginner to advanced fraud detection
- Complete documentation and quick start guide
- Setup and verification scripts
2025-10-23 13:53:30 -04:00

53 lines
1.2 KiB
YAML

version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: fraud_detection_db
environment:
POSTGRES_DB: fraud_detection
POSTGRES_USER: fraud_analyst
POSTGRES_PASSWORD: SecurePass123!
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./schema:/docker-entrypoint-initdb.d
- ./data:/data
networks:
- fraud_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fraud_analyst -d fraud_detection"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
db-ui:
image: ghcr.io/n7olkachev/db-ui:latest
container_name: fraud_detection_ui
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: fraud_analyst
POSTGRES_PASSWORD: SecurePass123!
POSTGRES_DB: fraud_detection
POSTGRES_PORT: 5432
ports:
- "3000:3000"
networks:
- fraud_network
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
networks:
fraud_network:
driver: bridge
volumes:
postgres_data:
driver: local