fix: Update application port from 8000 to 9090 in configuration and deployment files
CI / lint-test-build (push) Failing after 43s

This commit is contained in:
2026-06-01 17:23:59 +02:00
parent 5051f2de83
commit df55953d31
5 changed files with 76 additions and 17 deletions
+59
View File
@@ -265,6 +265,65 @@ Important:
- [docker-compose.yml](docker-compose.yml) uses `git.allucanget.biz/allucanget/arbitrade:latest` as the default image reference.
## Coolify Deployment (Nixpacks)
Use this when deploying directly from Git in Coolify without the Dockerfile path.
### 1) Create application in Coolify
- In Coolify, create a new `Application` from your Git repository.
- Branch: `main` (or your release branch).
- Build Pack: `Nixpacks`.
- Root Directory: `.`
### 2) Configure build and start behavior
Set these in Coolify application settings:
- Build Command: leave empty (let Nixpacks auto-detect Python).
- Install Command: leave empty (Nixpacks will install from `pyproject.toml`, which reads `requirements/latest-runtime.in`).
- Start Command: `python -m arbitrade.main`
- Port: `8000`
### 3) Configure health check and networking
- Health Check Path: `/health`
- Exposed Port: `8000`
- Use Coolify-generated domain or attach your own domain.
### 4) Configure persistent storage
Add a persistent volume in Coolify:
- Mount Path: `/app/data`
This preserves DuckDB and other runtime artifacts across restarts/redeploys.
### 5) Configure environment variables
Add runtime environment variables in Coolify (UI: Environment Variables):
- `APP_ENV=prod`
- `APP_HOST=0.0.0.0`
- `APP_PORT=8000`
- `DUCKDB_PATH=/app/data/arbitrade.duckdb`
- `LOG_LEVEL=INFO`
- `LOG_JSON=true`
- `KRAKEN_API_KEY=...`
- `KRAKEN_API_SECRET=...`
- `KRAKEN_API_KEY_PERMISSIONS=query,trade`
Recommended:
- Configure `FERNET_KEY` in Coolify secrets (do not commit it).
- Keep all exchange keys/secrets in Coolify secret variables only.
### 6) Deploy and verify
- Trigger deploy in Coolify.
- Verify app boot logs show startup completed.
- Verify `GET /health` returns success on deployed URL.
## Gitea CI / Registry Setup
CI file: