fix(payment): default broker host port to 1607 (8090 was allocated on the server)
CI/CD / CI · Web (tsc) (push) Successful in 1m10s
CI/CD / Deploy · full stack (push) Successful in 3m6s

This commit is contained in:
soroush.asadi
2026-06-16 07:28:05 +03:30
parent 376cdf6a1c
commit 23d1fd8fb1
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -275,13 +275,15 @@ services:
container_name: fr2-payment
restart: unless-stopped
ports:
- "${EDGE_BIND:-0.0.0.0}:${PAY_PORT:-8090}:8080"
# Default to the production port 1607 so the bind works without an ENV_FILE
# edit (8090 collided on the server). Override via PAY_PORT if 1607 is taken.
- "${EDGE_BIND:-0.0.0.0}:${PAY_PORT:-1607}:8080"
environment:
DATABASE_URL: "postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/flatrender?search_path=payment,public"
JWT_SECRET: "${JWT_SECRET}"
PORT: "8080"
# Externally reachable base — ZarinPal callback + user redirect are built from it.
PUBLIC_BASE_URL: "${PAY_PUBLIC_URL:-http://localhost:8090}"
PUBLIC_BASE_URL: "${PAY_PUBLIC_URL:-http://localhost:1607}"
# Shared default ZarinPal merchant (a client_app may override per-site).
ZARINPAL_MERCHANT_ID: "${ZARINPAL_MERCHANT_ID:-}"
ZARINPAL_SANDBOX: "${ZARINPAL_SANDBOX:-true}"