18 lines
449 B
YAML
18 lines
449 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "30080:3000" # Map external port 5173 to internal port 3000
|
|
environment:
|
|
- NODE_ENV=production
|
|
restart: unless-stopped
|
|
# Remove the volume mount since we're building the dist folder into the image
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|