# Coolify project layout

## Project

- **Name:** Ninja Nexus
- **UUID:** `d38yxbj3hi8pie1mjh5jff7f`
- **Environment:** production (`ucjh3265usu0mk2qt9cp6owh`)
- **Server:** localhost (`idyx5l33dl002u2um0kmo9sf`)

## Applications

| App | UUID | Public URL |
|-----|------|------------|
| nexus-downloads | `vh3442no566kew57rzji7qha` | https://nexus.ninjakernen.info |
| nexus-backend | `x6vd3qnxkzdx2p5k7h5j40sy` (latest deploy) | http://x6vd3qnxkzdx2p5k7h5j40sy.85.208.48.244.sslip.io |

## Database

| App | UUID | Engine |
|-----|------|--------|
| nexus-db | `qtjb1lwa9g3qk6jt33vi6d1m` | PostgreSQL 16 |

Connection details are configured in Coolify only — not recorded here.

## API used

- `POST /api/v1/projects`
- `POST /api/v1/databases/postgresql`
- `POST /api/v1/applications/dockerfile`
- `PATCH /api/v1/applications/{uuid}` (env, post_deployment_command)
- `GET /api/v1/deploy?uuid=...&force=true`

## Manual fallback

If `PATCH` dockerfile returns 422, use Coolify UI to paste Dockerfile from `deployment/coolify/nexus-backend/Dockerfile` with git repo connected, or use `deploy-nexus-backend.ps1` tar.gz ADD flow.
