first commit

This commit is contained in:
2026-11-10 10:12:09 +09:00
commit 0288412bbb
84 changed files with 312187 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
services:
# Nginx Proxy Manager 연동 프로덕션 SSR 컨테이너
# - Domain Names: teacherpick.kr
# - Scheme: http
# - Forward Hostname / IP: teacherpick_frontend
# - Forward Port: 80
teacherpick_frontend:
build:
context: .
dockerfile: Dockerfile
args:
VITE_SITE_ORIGIN: https://teacherpick.kr
container_name: teacherpick_frontend
restart: unless-stopped
ports:
- "${HOST_PORT:-3020}:80"
environment:
- NODE_ENV=production
- PORT=80
- HOST=0.0.0.0
- VITE_SITE_ORIGIN=https://teacherpick.kr
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:80/healthz"]
interval: 30s
timeout: 5s
retries: 3
# (선택 사항) 로컬 개발 전용 컨테이너 (--profile dev 실행 시에만 동작)
landing-dev:
image: node:22-alpine
container_name: teacherpick_dev
working_dir: /app
volumes:
- .:/app
- /app/node_modules
ports:
- "5173:5173"
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
profiles:
- dev