- allow the vite dev server origins in development and the compose port origins in production; CORS_ORIGINS overrides both - set NODE_ENV=production in the runtime docker image - document both settings in .env.example and the development docs - bump version to 1.19.3
18 lines
528 B
YAML
18 lines
528 B
YAML
services:
|
|
liqa:
|
|
build:
|
|
context: .
|
|
ports:
|
|
# UI, REST API (/api/v1), MCP (/mcp) and Swagger (/docs).
|
|
# The production CORS origins (server/src/common/cors.ts) use this port;
|
|
# set CORS_ORIGINS in .env when publishing it elsewhere.
|
|
- "13000:3000"
|
|
# Optional overrides (see .env.example); every setting has a default
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
volumes:
|
|
# persist SQLite database across restarts
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|