Docker 설정 파일 구조 개선 및 .vite 폴더 추적 제거

- .dockerignore 및 docker-compose.yml을 docker/ 디렉토리로 이동
- Makefile의 docker-compose 명령어 경로 업데이트
- .vite/ 폴더를 git 추적에서 제거

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-09-08 14:06:22 +09:00
parent de253c5d68
commit 8ae42bce07
106 changed files with 526 additions and 131298 deletions

56
docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,56 @@
version: '3.8'
services:
web:
build:
context: .
dockerfile: docker/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
platform: linux/amd64
image: nice-app-web:latest
container_name: nice-app-web
ports:
- "3000:80"
environment:
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=Host(`localhost`)"
- "traefik.http.services.web.loadbalancer.server.port=80"
# Development service (optional)
web-dev:
build:
context: .
dockerfile: docker/Dockerfile.dev
platforms:
- "linux/amd64"
- "linux/arm64"
platform: linux/amd64
container_name: nice-app-web-dev
ports:
- "5173:5173"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
command: npm run dev
profiles:
- dev
networks:
default:
driver: bridge
volumes:
node_modules: