# Sriphat Data Platform — Claude Context ## Project Paths | Environment | Path | |-------------|------| | **Local (WSL2)** | `/mnt/e/git3/sriphat-dataplatform` | | **Server .8** | `/home/bdadmin/sriphat-dataplatform` | | **Server .9** | `/home/bdadmin/sriphat-dataplatform` (เฉพาะ folders ของ service ที่รันบนเครื่องนี้) | | **Windows** | `E:\git3\sriphat-dataplatform` | ## Remote Hosts (WSL2 SSH) | Server | IP | SSH Script | |--------|----|-----------| | **Server 1** | 192.168.100.8 | `~/key/ssh_sriphat_8.sh` | | **Server 2** | 192.168.100.9 | `~/key/ssh_sriphat_9.sh` | ## Service Distribution ### Server 1 — 192.168.100.8 (folders ทั้งหมด) ``` 00-network/ # Docker network setup 01-infra/ # Nginx, Keycloak, PostgreSQL, Redis, Dozzle 02-supabase/ # Supabase full stack (13 containers) 03-apiservice/ # Custom FastAPI service 06-analytics/ # Apache Superset ``` ### Server 2 — 192.168.100.9 (เฉพาะ folders ของ service ที่ใช้บนเครื่องนี้) ``` 05-airflow/ # Apache Airflow (CeleryExecutor) 07-minio/ # MinIO Object Storage ``` > **หมายเหตุ:** OpenMetadata อยู่บน server .9 แต่ไม่อยู่ใน repo นี้ ## Global Environment File - **Local dev:** `.env.global` (root of project) - **Server:** `/home/bdadmin/sriphat-dataplatform/.env.global` - ไฟล์นี้อยู่ใน `.gitignore` — ต้องสร้างและ sync เองบนแต่ละเครื่อง ## Docker Network ทุก service ใช้ network ร่วม ต้องสร้างก่อนรัน: ```bash docker network create shared_data_network ``` ## Daily Log Convention - Path: `_daily-log/YYYY-MM-DD-sriphat-dataplatform.md` - Folder `_daily-log/` อยู่ใน `.gitignore` - ดู convention ที่: `_daily-log/` (ถ้ามี README) หรือจาก BDA standard