docker-deploy-port-config
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
VPN SaaS Dev
2026-05-16 21:30:19 +09:00
parent 9fe172702f
commit c98432ca7d
2 changed files with 8 additions and 1 deletions

View File

@@ -33,6 +33,13 @@ python -m scripts.bootstrap_admin
curl -fsS http://127.0.0.1:8000/ready curl -fsS http://127.0.0.1:8000/ready
``` ```
If port `8000` is already used on the host, set `APP_PORT` in `.env` and point the reverse proxy to that local port:
```bash
APP_PORT=8010
curl -fsS http://127.0.0.1:8010/ready
```
The default compose stack includes Postgres, Redis, API and bot services with health checks, restart policies and log rotation. The default compose stack includes Postgres, Redis, API and bot services with health checks, restart policies and log rotation.
Telegram notifications are the primary pilot notification channel. Browser push currently stores subscriptions and is treated as beta until server-side Web Push delivery is enabled. Telegram notifications are the primary pilot notification channel. Browser push currently stores subscriptions and is treated as beta until server-side Web Push delivery is enabled.

View File

@@ -59,7 +59,7 @@ services:
VAPID_PUBLIC_KEY: ${VAPID_PUBLIC_KEY:-} VAPID_PUBLIC_KEY: ${VAPID_PUBLIC_KEY:-}
VAPID_PRIVATE_KEY: ${VAPID_PRIVATE_KEY:-} VAPID_PRIVATE_KEY: ${VAPID_PRIVATE_KEY:-}
ports: ports:
- "127.0.0.1:8000:8000" - "127.0.0.1:${APP_PORT:-8000}:8000"
healthcheck: healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/ready', timeout=3).read()\""] test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/ready', timeout=3).read()\""]
interval: 10s interval: 10s