Files
personal-support-ticket-system/docker-compose.yml
2026-03-10 01:42:12 +09:00

31 lines
692 B
YAML

services:
backend:
build:
context: ./backend
ports:
- "4500:4500"
env_file:
- ./backend/.env
environment:
# These override anything in .env so they are always correct for Docker
NODE_ENV: production
HOST: "0.0.0.0"
DB_PATH: /app/data/app.db
volumes:
- db_data:/app/data
restart: unless-stopped
# One-shot build container — not a running service.
# Run: docker compose run --rm frontend-builder
# Then copy dist/ to wherever nginx serves static files from.
frontend-builder:
build:
context: ./frontend
profiles:
- build
volumes:
- ./frontend/dist:/app/dist
volumes:
db_data: