2026-03-03 00:41:48 +07:00
2026-03-03 00:41:48 +07:00
2026-03-03 00:10:00 +07:00
2026-02-13 17:29:01 +07:00
2026-02-13 17:29:01 +07:00
2026-02-13 17:29:01 +07:00
2026-02-16 23:20:48 +07:00
2026-02-16 23:20:48 +07:00
2026-02-13 17:29:01 +07:00
2026-02-17 09:00:21 +07:00
2026-02-17 09:00:21 +07:00

Sriphat Hospital Data Platform

Modern Data Stack สำหรับโรงพยาบาลศรีพัฒน์ ประกอบด้วย:

  • Nginx Proxy Manager - Gateway + SSL
  • Keycloak - Single Sign-On (SSO)
  • PostgreSQL - Data Warehouse
  • API Service - Custom FastAPI endpoints
  • Airbyte - Data Ingestion
  • Apache Superset - Business Intelligence

🚀 Quick Start

Ubuntu Server (Production)

# Quick install (recommended)
bash install.sh

# Or manual setup
sudo bash setup-ubuntu.sh
# (logout/login, then continue)
bash start-all.sh

See README-UBUNTU.md for detailed Ubuntu installation guide.

Development/Windows

# 1. Configure environment
notepad .env.global

# 2. Start all services
bash start-all.sh

# 3. Access services
# - Nginx Proxy Manager: http://localhost:81
# - Keycloak: http://localhost:8080
# - API Service: http://localhost/apiservice

📁 Project Structure

├── 00-network/          # Shared Docker network
├── 01-infra/            # Nginx + Keycloak + PostgreSQL
├── 03-apiservice/       # Custom FastAPI service
├── 04-ingestion/        # Airbyte ETL
├── 06-analytics/        # Apache Superset
├── .env.global          # Global configuration
├── start-all.sh         # Start all services
├── stop-all.sh          # Stop all services
└── DEPLOYMENT.md        # Full deployment guide

📖 Documentation

🔒 Security

All services communicate via shared_data_network and are exposed through Nginx Proxy Manager only. Keycloak provides centralized authentication (SSO) for all components.

📊 API Service

Custom FastAPI service with:

  • Admin UI for managing API keys
  • Permission-based access control
  • Integration with PostgreSQL schemas (fastapi, operationbi)
  • Endpoint: POST /api/v1/feed/checkpoint

Required permission: feed.checkpoint:write

Description
No description provided
Readme 253 KiB
Languages
Python 54.8%
Shell 38.2%
HTML 2.9%
PowerShell 2.8%
Dockerfile 1.3%