services:
9router:
image: 2noscript/9router:latest
depends_on:
init-permissions:
condition: service_completed_successfully
ports:
- "20128:20128"
volumes:
- 9router-data:/var/lib/9router
env_file:
- .env
init-permissions:
image: alpine
user: root
volumes:
- 9router-data:/var/lib/9router
command: chmod -R 777 /var/lib/9router
volumes:
9router-data:
env
# 9Router environment contract
# This file reflects actual runtime usage in the current codebase.
# Required
JWT_SECRET=change-me-to-a-long-random-secret
INITIAL_PASSWORD=22022000
DATA_DIR=/var/lib/9router
# Recommended runtime variables
PORT=20128
NODE_ENV=production
# Recommended security and ops variables
API_KEY_SECRET=endpoint-proxy-api-key-secret
MACHINE_ID_SALT=endpoint-proxy-salt
ENABLE_REQUEST_LOGS=false
OBSERVABILITY_ENABLED=true
AUTH_COOKIE_SECURE=false
REQUIRE_API_KEY=false
# Cloud sync variables
# Must point to this running instance so internal sync jobs can call /api/sync/cloud.
# Server-side preferred variables:
BASE_URL=http://localhost:20128
CLOUD_URL=https://9router.com
# Backward-compatible/public variables:
NEXT_PUBLIC_BASE_URL=http://localhost:20128
NEXT_PUBLIC_CLOUD_URL=https://9router.com
# Optional outbound proxy variables for upstream provider calls
# Lowercase variants are also supported: http_proxy, https_proxy, all_proxy, no_proxy
# HTTP_PROXY=http://127.0.0.1:7890
# HTTPS_PROXY=http://127.0.0.1:7890
# ALL_PROXY=socks5://127.0.0.1:7890
# NO_PROXY=localhost,127.0.0.1
# Currently unused by application runtime (kept as reference)
# INSTANCE_NAME=9router
Content type
Image
Digest
sha256:cfd5b19e3…
Size
162.2 MB
Last updated
4 months ago
docker pull 2noscript/9router