Add Fabric/Forge version builds and Paper integration, preserve permanent player identities across renames, harden session authorization, and surface privacy-conscious launcher/server activity in the panel.
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# SCOPENET admin panel
|
|
#
|
|
# cp .env.example .env # set ADMIN_PASSWORD at least
|
|
# docker compose up -d
|
|
#
|
|
# Then open http://localhost:8080 (or your domain behind a reverse proxy).
|
|
services:
|
|
panel:
|
|
image: ghcr.io/scopeddlol/scopenet-mc-panel:latest
|
|
# Or build from source: docker compose build
|
|
build: .
|
|
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:-}
|
|
RUST_LOG: ${RUST_LOG:-info}
|
|
volumes:
|
|
- panel-data:/data
|
|
# Very small footprint: the panel idles at ~10 MB RAM.
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
|
|
volumes:
|
|
panel-data:
|