Static upstreams crash nginx on boot when backend DNS is not ready; use Docker DNS resolver with proxy_pass http://\ pattern.
Co-authored-by: Cursor <cursoragent@cursor.com>
Variable proxy_pass with dynamic host:port breaks proxying on nginx 1.27; static upstreams work because compose waits for backend healthy.
Co-authored-by: Cursor <cursoragent@cursor.com>
backend: 4000 in one variable breaks nginx upstream resolution; split host and port for dynamic Docker DNS.
Co-authored-by: Cursor <cursoragent@cursor.com>
Skip schema re-run on every container start (RUN_MIGRATE_ON_START=0); add /health check so nginx does not proxy before the API is listening.
Co-authored-by: Cursor <cursoragent@cursor.com>
commission_wallet_type_id defaulted to 2 but USDT_TRC20 is id 1 on empty DB; seed row from wallet_types instead.
Co-authored-by: Cursor <cursoragent@cursor.com>
Containers did not receive DATABASE_PASSWORD from .env; fall back to POSTGRES_PASSWORD and expose both vars in compose so SCRAM auth works when the password is not embedded in DATABASE_URL.
Co-authored-by: Cursor <cursoragent@cursor.com>
Containers cannot reach Postgres on the VPS host via localhost; auto-rewrite when running inside Docker and improve migrate error hints.
Co-authored-by: Cursor <cursoragent@cursor.com>
Fix fresh-DB migration order for candle_predict_auto_settings, fail loudly on migrate errors, honor DATABASE_URL from .env, add Docker DNS resolver for nginx upstreams, and document VPS deploy steps.
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep environment files and dependencies local only to avoid leaking credentials and bloating the repository.
Co-authored-by: Cursor <cursoragent@cursor.com>