Docker Compose configuration for running Nstdata Router, Gateway and Redis. Router obtains configuration from the Nstdata control plane; this repository contains deployment materials, not the Router/Gateway source.
- Docker Engine and Docker Compose supporting inline
configs.content. - An authorized
CONFIG_API_TOKENand access to the selected Router/Gateway images. - Image versions and traffic/reporting behavior confirmed with the service maintainer. The template uses
latest; replace every image with reviewed version tags or digests before production use.
Use the checked-in compose.yaml. Set CONFIG_API_TOKEN through a protected local environment. Generate REDIS_PASSWORD once and retain it for restarts:
export REDIS_PASSWORD="$(openssl rand -hex 32)"Use a 64-character hexadecimal password in this template so it can be used safely in the Redis URL. Redis has no published host port; Router reaches it through the Compose network.
services:
redis:
image: redis:latest
container_name: proxy-manager-redis
restart: always
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD:?Set REDIS_PASSWORD}"]
proxy-manager-router:
image: nstdata/proxy-manager-router:latest
container_name: proxy-manager-router
environment:
- CONFIG_API_TOKEN=${CONFIG_API_TOKEN:?Set CONFIG_API_TOKEN}
- REPORT_SINK=redis
- REPORT_REDIS_KEY=proxyManager
- REDIS_URL=redis://:${REDIS_PASSWORD:?Set REDIS_PASSWORD}@redis:6379/0
depends_on:
- redis
restart: always
proxy-manager-gateway:
image: nstdata/proxy-manager-gateway:latest
container_name: proxy-manager-gateway
ports:
- "24125:24125"
configs:
- source: gateway_config
target: /app/config.yaml
depends_on:
- proxy-manager-router
restart: always
configs:
gateway_config:
content: |
server:
bind: "0.0.0.0:24125"
logs:
level: "info"
format: "compact"
file_enabled: false
console_enabled: true
backend:
version: "grpc_v2"
address: "grpc://proxy-manager-router:3050"The following commands start containers. Run them only after selecting authorized images and configuring the token and password:
case "${REDIS_PASSWORD:-}" in
''|*[!0-9a-fA-F]*) printf '%s\n' 'REDIS_PASSWORD must be 64 hexadecimal characters' >&2; exit 1 ;;
esac
[ "${#REDIS_PASSWORD}" -eq 64 ] || {
printf '%s\n' 'REDIS_PASSWORD must be 64 hexadecimal characters' >&2
exit 1
}
docker compose config --quiet
docker compose up -dGateway publishes port 24125 on all host interfaces. Apply host/network access controls appropriate to the deployment. Router connects to the control plane; this template does not establish that all traffic or telemetry stays local.
- Keep the token and Redis password outside version control; retain the same password across restarts.
- The template sends reports to its Redis instance. Supported reporting sinks, fields and retention depend on the selected image version; obtain that contract before handling sensitive traffic.
- Back up required Redis data and configuration before upgrading. Record previous image digests and restore them with the matching configuration when rolling back.
docker compose downstops and removes containers. This template defines no persistent Redis volume and does not provide a report-retention guarantee across container replacement. Configure and verify persistence if reports must survive replacement.
With Python 3 and Docker Compose installed:
python3 -B -m unittest discover -s tests -vThese checks render Compose with synthetic credentials and validate the password guard; they do not pull images or start services. A successful configuration check does not prove image availability, readiness or proxy routing.
For image access and deployment support, contact the maintainer through GitHub Issues. Do not include tokens or traffic records.
The deployment configuration and documentation are available under the MIT License. Router and Gateway images are distributed separately under their respective terms.