|
|
@@ -194,6 +194,7 @@ After Docker install, re-SSH so the `docker` group membership takes effect.
|
|
|
|
| `dta_webapp` | node/vite static | adama + roslin (+ ai-server-4080) | beta + prod | active/active; built to `/var/www/<env>.app.ditchtheagent/html`, served by web-static nginx |
|
|
|
|
| `dta_webapp` | node/vite static | adama + roslin (+ ai-server-4080) | beta + prod | active/active; built to `/var/www/<env>.app.ditchtheagent/html`, served by web-static nginx |
|
|
|
|
| `scha` | django (docker) | adama + roslin + ai-server-4080 | prod | active/active behind NPM; beta port reserved |
|
|
|
|
| `scha` | django (docker) | adama + roslin + ai-server-4080 | prod | active/active behind NPM; beta port reserved |
|
|
|
|
| `chat_web_app` | node-static (CRA) | adama + roslin + ai-server-4080 | prod | active/active; built to `/var/www/<env>.chat.aimloperations/html`, served by web-static nginx; beta port reserved |
|
|
|
|
| `chat_web_app` | node-static (CRA) | adama + roslin + ai-server-4080 | prod | active/active; built to `/var/www/<env>.chat.aimloperations/html`, served by web-static nginx; beta port reserved |
|
|
|
|
|
|
|
|
| `chat_backend` | django (docker) | adama + roslin + ai-server-4080 | prod | active/active behind NPM; Ollama via `OLLAMA_BASE_URL=http://10.0.0.128:11434`; beta port reserved |
|
|
|
|
|
|
|
|
|
|
|
|
Django apps use a **shared external Postgres** (via `DATABASE_URL` in each host's
|
|
|
|
Django apps use a **shared external Postgres** (via `DATABASE_URL` in each host's
|
|
|
|
env file) so active/active replicas share one database. Beta and prod never share
|
|
|
|
env file) so active/active replicas share one database. Beta and prod never share
|
|
|
@@ -217,6 +218,7 @@ future beta replica.
|
|
|
|
| company_site | 8010 (*not deployed*) | 8000 | adama, roslin, ai-server-4080 |
|
|
|
|
| company_site | 8010 (*not deployed*) | 8000 | adama, roslin, ai-server-4080 |
|
|
|
|
| dta_service | 8011 | 8001 | adama, roslin, ai-server-4080 |
|
|
|
|
| dta_service | 8011 | 8001 | adama, roslin, ai-server-4080 |
|
|
|
|
| scha | 8012 (*not deployed*) | 8002 | adama, roslin, ai-server-4080 |
|
|
|
|
| scha | 8012 (*not deployed*) | 8002 | adama, roslin, ai-server-4080 |
|
|
|
|
|
|
|
|
| chat_backend | 8013 (*not deployed*) | 8003 | adama, roslin, ai-server-4080 |
|
|
|
|
| dta_webapp (nginx) | 8081 | 8080 | adama, roslin, ai-server-4080 |
|
|
|
|
| dta_webapp (nginx) | 8081 | 8080 | adama, roslin, ai-server-4080 |
|
|
|
|
| chat_web_app (nginx) | 8083 (*not deployed*) | 8082 | adama, roslin, ai-server-4080 |
|
|
|
|
| chat_web_app (nginx) | 8083 (*not deployed*) | 8082 | adama, roslin, ai-server-4080 |
|
|
|
|
|
|
|
|
|
|
|
@@ -259,6 +261,7 @@ point each domain at the backend(s):
|
|
|
|
| dta_webapp | (see DTA NPM hosts) | `adama:8080` / `8081` + same on roslin |
|
|
|
|
| dta_webapp | (see DTA NPM hosts) | `adama:8080` / `8081` + same on roslin |
|
|
|
|
| scha | `schawheaton.aimloperations.com`, `schawheaton.com` (+ www) | `adama:8002` + `roslin:8002` (+ `ai-server-4080:8002`) |
|
|
|
|
| scha | `schawheaton.aimloperations.com`, `schawheaton.com` (+ www) | `adama:8002` + `roslin:8002` (+ `ai-server-4080:8002`) |
|
|
|
|
| chat_web_app | `chat.aimloperations.com` (+ www) | `adama:8082` + `roslin:8082` (+ `ai-server-4080:8082`) |
|
|
|
|
| chat_web_app | `chat.aimloperations.com` (+ www) | `adama:8082` + `roslin:8082` (+ `ai-server-4080:8082`) |
|
|
|
|
|
|
|
|
| chat_backend | `chatbackend.aimloperations.com` | `adama:8003` + `roslin:8003` + `ai-server-4080:8003` |
|
|
|
|
|
|
|
|
|
|
|
|
### Required changes IN each app repo (owned separately)
|
|
|
|
### Required changes IN each app repo (owned separately)
|
|
|
|
|
|
|
|
|
|
|
@@ -273,6 +276,8 @@ point each domain at the backend(s):
|
|
|
|
- [ ] `chat_web_app`: `npm run build:beta` / `build:prod` output to
|
|
|
|
- [ ] `chat_web_app`: `npm run build:beta` / `build:prod` output to
|
|
|
|
`/var/www/beta.chat.aimloperations/html` / `/var/www/prod.chat.aimloperations/html`.
|
|
|
|
`/var/www/beta.chat.aimloperations/html` / `/var/www/prod.chat.aimloperations/html`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Companion `chat_web_app` frontend is already registered in this infrastructure repo.
|
|
|
|
|
|
|
|
|
|
|
|
### Shared Postgres (10.0.0.230, same box as NPM)
|
|
|
|
### Shared Postgres (10.0.0.230, same box as NPM)
|
|
|
|
|
|
|
|
|
|
|
|
One shared instance; each app+env gets its own database (beta and prod MUST NOT
|
|
|
|
One shared instance; each app+env gets its own database (beta and prod MUST NOT
|
|
|
@@ -287,6 +292,8 @@ do not).
|
|
|
|
| dta_service | beta | `dta_service_beta` | `postgres://westfarn:<pw>@10.0.0.230:5432/dta_service_beta` |
|
|
|
|
| dta_service | beta | `dta_service_beta` | `postgres://westfarn:<pw>@10.0.0.230:5432/dta_service_beta` |
|
|
|
|
| scha | prod | `scha` | `postgres://westfarn:<pw>@10.0.0.230:5432/scha` |
|
|
|
|
| scha | prod | `scha` | `postgres://westfarn:<pw>@10.0.0.230:5432/scha` |
|
|
|
|
| scha | beta | `scha_beta` | `postgres://westfarn:<pw>@10.0.0.230:5432/scha_beta` |
|
|
|
|
| scha | beta | `scha_beta` | `postgres://westfarn:<pw>@10.0.0.230:5432/scha_beta` |
|
|
|
|
|
|
|
|
| chat_backend | prod | `chat_backend` | `postgres://westfarn:<pw>@10.0.0.230:5432/chat_backend` |
|
|
|
|
|
|
|
|
| chat_backend | beta | `chat_backend_beta` | `postgres://westfarn:<pw>@10.0.0.230:5432/chat_backend_beta` |
|
|
|
|
|
|
|
|
|
|
|
|
Server prereqs on 10.0.0.230: create each DB + grant `westfarn`;
|
|
|
|
Server prereqs on 10.0.0.230: create each DB + grant `westfarn`;
|
|
|
|
`listen_addresses` covers LAN; `pg_hba.conf` allows `10.0.0.0/24`; firewall opens
|
|
|
|
`listen_addresses` covers LAN; `pg_hba.conf` allows `10.0.0.0/24`; firewall opens
|
|
|
@@ -363,6 +370,7 @@ Store vault password for CI in a file readable only by the Act runner (e.g. `~/.
|
|
|
|
| 10 | Dockerize `company_site` | Future (separate ticket) |
|
|
|
|
| 10 | Dockerize `company_site` | Future (separate ticket) |
|
|
|
|
| 10a | Register + deploy `scha` (all webservers, port 8002) | In progress ([scha#19](https://git.aimloperations.com/ai_ml_operations/scha/issues/19)) |
|
|
|
|
| 10a | Register + deploy `scha` (all webservers, port 8002) | In progress ([scha#19](https://git.aimloperations.com/ai_ml_operations/scha/issues/19)) |
|
|
|
|
| 10b | Register + deploy `chat_web_app` (node-static, port 8082) | In progress ([chat_web_app#13](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/13)) |
|
|
|
|
| 10b | Register + deploy `chat_web_app` (node-static, port 8082) | In progress ([chat_web_app#13](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/13)) |
|
|
|
|
|
|
|
|
| 10c | Register + deploy `chat_backend` (django, port 8003) | In progress ([chat_backend#6](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/6)) |
|
|
|
|
| 11 | Gitea container registry (optional) | Future |
|
|
|
|
| 11 | Gitea container registry (optional) | Future |
|
|
|
|
|
|
|
|
|
|
|
|
## Open Decisions
|
|
|
|
## Open Decisions
|
|
|
|