24 lines
598 B
YAML
24 lines
598 B
YAML
# Production-style: docker compose up --build → http://localhost:8080
|
|
# Dev (hot reload): docker compose --profile dev up dev → http://localhost:5173
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
target: runtime
|
|
image: pixeltation:latest
|
|
ports:
|
|
- "${PIXELTATION_PORT:-8080}:80"
|
|
restart: unless-stopped
|
|
|
|
dev:
|
|
profiles: ["dev"]
|
|
build:
|
|
context: .
|
|
target: dev
|
|
ports:
|
|
- "${PIXELTATION_DEV_PORT:-5173}:5173"
|
|
volumes:
|
|
- .:/app
|
|
# Keep the container's own node_modules instead of the host's.
|
|
- /app/node_modules
|