41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
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
|