.env에서 서버 바인딩(HOST/PORT/LOG_LEVEL/RELOAD) 받아오기
- config.Settings에 host/port/log_level/reload 필드 추가
- app/main.py에 main() + __main__ 진입점 추가 (python -m app.main)
- Dockerfile: python:3.13-slim 베이스로, CMD를 python -m app.main 으로 변경
- docker-compose: env_file 사용, ports를 ${PORT} 변수화
- 환경변수 PORT=N 으로 override 가능 (uvicorn 직접 실행도 그대로 지원)
This commit is contained in:
1 parent
bc40ace2fd
commit
f31ef142e8
6 files changed
+71
-14
No files matched your search
@@ -1,3 +1,9 @@
|
||||
# 서버 바인딩 (uvicorn) - python -m app.main 실행 시 사용됨
|
||||
HOST=0.0.0.0
|
||||
PORT=8000
|
||||
LOG_LEVEL=info
|
||||
RELOAD=false
|
||||
|
||||
API_KEYS=combooks-key-change-me,baikal-key-change-me
|
||||
ENGINE_VERSION=o2o-plagiarism-2.1.0-kosimcse
|
||||
REFERENCE_CORPUS_DIR=./data/reference
|
||||
|
||||
Reference in new issue
Block a user