new file: backend/src/controllers/sqlInterfaceController.ts new file: backend/src/routes/sqlInterface.ts modified: backend/src/server.ts modified: docker-compose.external-db.yml modified: frontend/src/App.tsx modified: frontend/src/components/Sidebar.tsx new file: frontend/src/pages/SqlInterface.tsx modified: frontend/src/services/api.ts
32 lines
1012 B
YAML
32 lines
1012 B
YAML
# ============================================
|
|
# KIS API Builder - External Database
|
|
# ============================================
|
|
# Use this when you have your own PostgreSQL
|
|
#
|
|
# 1. Copy .env.example to .env
|
|
# 2. Set DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD
|
|
# 3. Run: docker compose -f docker-compose.external-db.yml up -d
|
|
# ============================================
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: kis-api-builder-app
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
ports:
|
|
- "${APP_PORT:-3000}:3000"
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
DB_HOST: ${DB_HOST:?DB_HOST is required}
|
|
DB_PORT: ${DB_PORT:-5432}
|
|
DB_NAME: ${DB_NAME:-api_builder}
|
|
DB_USER: ${DB_USER:-postgres}
|
|
DB_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
|
|
JWT_SECRET: ${JWT_SECRET:-change-this-secret-in-production}
|
|
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-24h}
|