Files
stock_chart_site/.env.example
tkrmagid cacddf5adf feat(phase-0): scaffold backend + web + docker + DB schema
- docker-compose.yml: timescaledb-ha (timescaledb 2.27 + vectorscale + pgvector + pgai)
  + backend (FastAPI, CUDA 12.1) + web (Next.js 14)
- docker-compose.gpu.yml: GPU profile overlay for RTX 3070 Ti
- build.bat: Windows bootstrap, auto-detects nvidia-smi and selects GPU/CPU compose
- backend: Dockerfile, pyproject.toml, FastAPI skeleton with /health and /health/db
- DB migration 001_init.sql: symbols (with trigram search), ohlcv_daily/1m (hypertables),
  macro_daily, trading_value_daily, news (vector embedding), predictions
  (with user_triggered flag for on-demand UX), prediction_outcomes, model_performance
- web: Next.js 14 + Tailwind + lightweight-charts placeholder
- README: KIS/DART/HuggingFace token issuance guides + 10 seed tickers + run instructions
2026-05-20 14:37:35 +09:00

40 lines
1.0 KiB
Plaintext

# Copy to .env and fill in. .env is gitignored.
# --- Database ---
POSTGRES_USER=stock
POSTGRES_PASSWORD=stockpw
POSTGRES_DB=stock
POSTGRES_HOST=db
POSTGRES_PORT=5432
DATABASE_URL=postgresql+psycopg://stock:stockpw@db:5432/stock
# --- Timezone ---
TZ=Asia/Seoul
# --- API keys (모두 무료 발급. 없어도 pykrx만으로 일단 동작) ---
# 한국투자증권 OpenAPI (실시간 시세, EOD 등)
# 발급: https://apiportal.koreainvestment.com (계좌 + Open API 서비스 신청)
KIS_APP_KEY=
KIS_APP_SECRET=
KIS_ACCOUNT_NO=
# DART OpenAPI (전자공시 본문)
# 발급: https://opendart.fss.or.kr (회원가입 후 인증키 신청)
DART_API_KEY=
# HuggingFace (선택. 없어도 공개 모델 다운로드 가능. 토큰 있으면 rate limit 완화)
# 발급: https://huggingface.co/settings/tokens
HUGGINGFACE_TOKEN=
# --- 모델 디바이스 ---
# auto | cuda | cpu
MODEL_DEVICE=auto
# --- Backend ---
BACKEND_PORT=8000
LOG_LEVEL=INFO
# --- Web ---
WEB_PORT=3000
NEXT_PUBLIC_API_BASE=http://localhost:8000