From 38bb9bd1d9135d5019c60975e6168e0a5cb01f38 Mon Sep 17 00:00:00 2001 From: jigoong Date: Tue, 24 Feb 2026 22:54:50 +0700 Subject: [PATCH] fix missing export port and env.exmaple for apiservice --- 03-apiservice/.env.example | 31 +++++++++++++++++++++++++++++++ 03-apiservice/docker-compose.yml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 03-apiservice/.env.example diff --git a/03-apiservice/.env.example b/03-apiservice/.env.example new file mode 100644 index 0000000..5926027 --- /dev/null +++ b/03-apiservice/.env.example @@ -0,0 +1,31 @@ +# Application +APP_NAME=APIsService +ROOT_PATH=/apiservice + +# Timezone +TIMEZONE=Asia/Bangkok + +# PostgreSQL Database (for ApiClient, ApiKey, RawWaitingTime tables) +DB_HOST=postgres +DB_PORT=5432 +DB_USER=postgres +DB_PASSWORD=your-postgres-password +DB_NAME=postgres +DB_SSLMODE=prefer + +# Supabase Database (for RawOpdCheckpoint table) +SUPABASE_DB_HOST=sdp-db +SUPABASE_DB_PORT=5432 +SUPABASE_DB_USER=postgres.1 +SUPABASE_DB_PASSWORD=your-supabase-password +SUPABASE_DB_NAME=postgres +SUPABASE_DB_SSLMODE=disable + +# Supabase API (for REST API calls) +SUPABASE_API_URL=http://sdp-kong:8000 +SUPABASE_API_KEY=your-supabase-anon-or-service-role-key + +# Admin Authentication +ADMIN_SECRET_KEY=your-secret-key-here +ADMIN_USERNAME=admin +ADMIN_PASSWORD=your-admin-password diff --git a/03-apiservice/docker-compose.yml b/03-apiservice/docker-compose.yml index 66f77d9..4746447 100644 --- a/03-apiservice/docker-compose.yml +++ b/03-apiservice/docker-compose.yml @@ -17,6 +17,8 @@ services: - ADMIN_SECRET_KEY=${ADMIN_SECRET_KEY} - ADMIN_USERNAME=${ADMIN_USERNAME} - ADMIN_PASSWORD=${ADMIN_PASSWORD} + ports: + - "8040:8040" networks: - shared_data_network restart: unless-stopped