Initial commit: Phase 1 scaffolding complete
- Root package.json with concurrently for dev server - Client: Vite + React 18 with design tokens and proxy config - Server: Express with CORS, multer (20MB), Sharp resize - Upload endpoint with preview generation - Dockerfile (multi-stage) and docker-compose.yml - Canvas deferred to Phase 8 (export functionality) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
apparel-designer:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: apparel-designer
|
||||
ports:
|
||||
- "3001:3001"
|
||||
volumes:
|
||||
- uploads_data:/app/server/uploads
|
||||
- exports_data:/app/server/exports
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3001
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/api/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
uploads_data:
|
||||
exports_data:
|
||||
Reference in New Issue
Block a user