31 lines
690 B
YAML
31 lines
690 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:/output
|
|
|
|
volumes:
|
|
db_data:
|