From cf12aa0df8a013a8e13caa815907f9771b22ba72 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Aug 2026 16:57:18 +0500 Subject: [PATCH] Document Coolify RAA deployment --- RAA.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/RAA.md b/RAA.md index 58ce1c7..149d78d 100644 --- a/RAA.md +++ b/RAA.md @@ -7,10 +7,11 @@ RAA is a separate deployment copied from the FN-8 parser/poster codebase. - Local workspace: `D:\DEVELOPMENT\raa-parser_poster` - Public admin domain: `https://raa.panel.f-n8.ru` - Gitea repo: `http://192.168.1.135:3000/exostring/raa-parser_poster.git` -- Proxmox LXC: CTID `107`, hostname `raa-parser-poster`, IP `192.168.1.106` -- Server path: `/opt/raa-parser/app` -- Deploy method: manual Docker Compose inside CTID `107`. -- Edge proxy: Caddy in CTID `110` proxies `raa.panel.f-n8.ru` to `192.168.1.106:8000`. +- Coolify project: `n8_parser` / `production` +- Coolify app: `RAA admin`, UUID `korokrhpoyqxf0nw2y8vk7lp` +- Coolify DB: `raa_parser_db`, UUID `m9v14hzfh5mk9kelxzcqvhc6` +- Coolify destination: `vk-parser-lxc`, CTID `105`, IP `192.168.1.105` +- Edge proxy: Caddy in CTID `110` proxies `raa.panel.f-n8.ru` to Coolify Traefik at `192.168.1.105:80`. - Health check: `https://raa.panel.f-n8.ru/health` - Site poster must stay disabled until a site adapter is configured. - The current site-poster adapter boundary is `site_poster_provider`; only `ghost` @@ -21,28 +22,31 @@ RAA is a separate deployment copied from the FN-8 parser/poster codebase. Created on 2026-08-03. -- App container and Postgres run via `/opt/raa-parser/app/docker-compose.yml`. -- Runtime `.env` is stored only on the server at `/opt/raa-parser/app/.env`. -- `APP_SECRET_KEY`, DB password, and initial admin password were generated on deploy and are not committed. +- App and Postgres are managed by Coolify, not by manual Docker Compose. +- Runtime env/secrets are stored in Coolify resource environment variables. +- `APP_SECRET_KEY`, DB password, and initial admin password were generated in Coolify and are not committed. - Initial admin login is `admin`. - `vk-parser`, `vk-storage-uploader`, and `daily-report` default to disabled for a fresh RAA DB. - Site poster defaults to disabled; do not enable it until an RAA site provider is chosen. +- A temporary manual LXC deployment was created first at CTID `107`, then replaced by Coolify. CTID `107` is stopped and is not the active runtime. ## Deploy Notes To update this deployment: 1. Push changes to the Gitea repo. -2. SSH to Proxmox host from `D:\DEVELOPMENT\.infra.md`. -3. Run inside CTID `107`: +2. Coolify should deploy `RAA admin` from `gitea/main`. +3. Manual deploy trigger, if needed: ```sh -cd /opt/raa-parser/app -git pull --rebase -docker-compose up -d --build -curl -fsS http://127.0.0.1:8000/health +curl -X POST -H "Authorization: Bearer " \ + -H "Content-Type: application/json" \ + -d '{"uuid":"korokrhpoyqxf0nw2y8vk7lp","type":"application"}' \ + "http://192.168.1.135:8000/api/v1/deploy" ``` +4. Verify `https://raa.panel.f-n8.ru/health`. + ## First-Run Settings Set real secrets in env, not in git: