Subpath-aware deploy for /adeo-maturity/ behind the shared optical-dev vhost. Auto-picks a free host port (prefers 3102, scans 3102-3199) and persists it to .env so re-deploys are idempotent. Renders the Apache conf from a template on each run. - script.js: detect URL prefix at load time and prepend it to all /api/ calls, so the same code works at the root locally and under a sub-path behind Apache. - Dockerfile: fix broken package.json copy (lives at repo root, not server/) and install python3 + reportlab + openpyxl for the sync/ import/PDF endpoints that shell out. - docker-compose: pin top-level name (per global docker policy), configurable host port, bind 127.0.0.1 only. - deploy/: new deploy.sh + apache-adeo.conf.tmpl. Old root deploy.sh removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
601 B
YAML
19 lines
601 B
YAML
# Top-level project name pinned per the global Docker policy — prevents
|
|
# collision with other apps deployed under /opt that share a parent dir name.
|
|
name: adeo-maturity-tool
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
# Host port resolved by deploy/deploy.sh (preferred 3102, scans 3102-3199
|
|
# if taken) and persisted to .env. Bind to 127.0.0.1 only — Apache fronts.
|
|
ports:
|
|
- "127.0.0.1:${ADEO_PORT:-3102}:3102"
|
|
environment:
|
|
- PORT=3102
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- ./clients:/app/clients
|