init: dbx-corm 프로젝트 Docker 기반 마이그레이션
주요 변경사항: - DB 접속정보를 환경변수(.env) 방식으로 분리 - orderlist_app → orderlist_db 변경 (main.py, routers/returns.py) - 네이버/카페24 API 키도 환경변수로 분리 - Dockerfile / docker-compose.yml 작성 (외부 PostgreSQL 네트워크 연결) - .gitignore: 민감파일(.env, cafe24_tokens.json, manual-ordering.json) 제외 - 불필요 파일 정리 (venv, __pycache__, 일회성 스크립트, xlsx 등) - README.md / .env.example / push_to_gitea.bat 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
corm-app:
|
||||
build: .
|
||||
image: dbx-corm:latest
|
||||
container_name: dbx-corm
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8002:8002"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
# 민감 파일은 Git에 안 올리고 서버 호스트에서 직접 마운트
|
||||
- ./cafe24_tokens.json:/app/cafe24_tokens.json
|
||||
- ./manual-ordering.json:/app/manual-ordering.json
|
||||
# 토큰 파일 자동 갱신 결과를 호스트에 영구 보존
|
||||
networks:
|
||||
- postgres-net
|
||||
|
||||
networks:
|
||||
postgres-net:
|
||||
external: true
|
||||
name: postgres_default # 서버의 실제 PostgreSQL 네트워크 이름으로 수정
|
||||
Reference in New Issue
Block a user