Sync runner checkout / sync (push) Successful in 6s
## Summary - Closes [#14](#14). - Register `monica_site` in `app_catalog` (`type: django`, repo `ai_ml_operations/monica_site`, default branch `main`) and `host_apps` on **adama**, **roslin**, and **ai-server-4080** (prod **8004**, beta **8014**). - Document NPM (`mkdrealtor.com` / `monica-preview.aimloperations.com`), Postgres DBs (`monica_site` / `monica_site_beta`), and **dj-queue worker singleton on adama** only (`compose --profile worker`). - List `monica_site` in `scripts/deploy.sh` `--app` help. ## Out of scope (manual ops) - Create Postgres DBs + grants on `10.0.0.230` - Control-node secrets under `~/Documents/secrets/monica_site/` - NPM proxy hosts (Ryan) - First deploy smoke + worker start on adama ## Test plan - [ ] Confirm inventory YAML parses (`ansible-inventory --list` or dry deploy) - [ ] Create DBs `monica_site` / `monica_site_beta` + secrets before smoke deploy - [ ] `./scripts/deploy.sh --app monica_site --env beta --ref main` - [ ] `./scripts/deploy.sh --app monica_site --env prod --ref main` - [ ] On **adama** only: `docker compose -f docker-compose.prod.yml --profile worker up -d` - [ ] Hit `/healthz/` on beta + prod; prod under-construction holding pageReviewed-on: #15
22 lines
1.1 KiB
YAML
22 lines
1.1 KiB
YAML
---
|
|
# Django services run active/active here and on roslin (shared external DB).
|
|
# dta_webapp static also runs active/active (built into /var/www, served by
|
|
# the web-static nginx container). Ports MUST match roslin so NPM can balance.
|
|
# Each entry is one workload: django -> compose project <name>_<env> on port;
|
|
# node-static -> /var/www/<env>_dta_webapp served on port.
|
|
host_apps:
|
|
- { name: company_site, env: prod, port: 8000 }
|
|
- { name: dta_service, env: prod, port: 8001 }
|
|
- { name: dta_service, env: beta, port: 8011 }
|
|
- { name: dta_webapp, env: prod, port: 8080 }
|
|
- { name: dta_webapp, env: beta, port: 8081 }
|
|
- { name: scha, env: prod, port: 8002 }
|
|
# optional: - { name: scha, env: beta, port: 8012 }
|
|
- { name: chat_web_app, env: prod, port: 8082 }
|
|
- { name: chat_web_app, env: beta, port: 8083 }
|
|
- { name: chat_backend, env: prod, port: 8003 }
|
|
- { name: chat_backend, env: beta, port: 8013 }
|
|
- { name: monica_site, env: prod, port: 8004 }
|
|
- { name: monica_site, env: beta, port: 8014 }
|
|
# monica_site dj-queue worker (compose --profile worker) runs ONLY on adama.
|