Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DjMbLQujBHunCCu5GpsHaT
48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
# SCOPENET admin panel
|
|
#
|
|
# cp .env.example .env # set ADMIN_PASSWORD and PUBLIC_URL
|
|
# docker compose up -d --build
|
|
#
|
|
# Then open http://localhost:8080 (or your domain behind a reverse proxy).
|
|
services:
|
|
panel:
|
|
# Tag the image built from this checkout so an older GHCR release is not used.
|
|
image: scopenet-panel:local
|
|
build:
|
|
context: .
|
|
args:
|
|
# Optional: URL of a static Vantage Linux release to bundle.
|
|
VANTAGE_URL: ${VANTAGE_URL:-}
|
|
container_name: scopenet-panel
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PANEL_PORT:-8080}:8080"
|
|
environment:
|
|
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
|
|
# First start only: creates the admin account. If empty, a random
|
|
# password is printed in `docker compose logs panel`.
|
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-}
|
|
# Signs login tokens. Auto-generated into the data volume if empty.
|
|
JWT_SECRET: ${JWT_SECRET:-}
|
|
# Optional — can also be set in the panel's Settings page.
|
|
CURSEFORGE_API_KEY: ${CURSEFORGE_API_KEY:-}
|
|
MAX_UPLOAD_MB: ${MAX_UPLOAD_MB:-2048}
|
|
PUBLIC_URL: ${PUBLIC_URL:-}
|
|
SCOPENET_TRUSTED_PROXIES: ${SCOPENET_TRUSTED_PROXIES:-}
|
|
# Live Map: Vantage generator + Minecraft client assets (see docs/live-map.md).
|
|
SCOPENET_VANTAGE_BIN: ${SCOPENET_VANTAGE_BIN:-/opt/vantage/vantage}
|
|
SCOPENET_VANTAGE_ASSETS: ${SCOPENET_VANTAGE_ASSETS:-/data/livemap/assets}
|
|
SCOPENET_VANTAGE_ARGS: ${SCOPENET_VANTAGE_ARGS:-}
|
|
RUST_LOG: ${RUST_LOG:-info}
|
|
volumes:
|
|
- panel-data:/data
|
|
# Very small footprint: the panel idles at ~10 MB RAM.
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
# Raise this if you enable Live Map: Vantage bakes tiles in memory.
|
|
memory: ${PANEL_MEMORY:-256M}
|
|
|
|
volumes:
|
|
panel-data:
|