Files

59 lines
3.1 KiB
Bash

# ──────────────────────────────────────────────────────────────────────────
# Minecraft server + dashboard configuration
# Copy to .env (scripts/setup.sh does this and generates the secrets).
# After changing values, apply with: docker compose up -d
# ──────────────────────────────────────────────────────────────────────────
# ── Minecraft ────────────────────────────────────────────────────────────
# Game version. Change and re-run `docker compose up -d mc` to upgrade.
MC_VERSION=26.3
# Loader: FABRIC (default), NEOFORGE, FORGE, VANILLA, PAPER, ...
SERVER_TYPE=FABRIC
# JVM heap for the server. Host has 10 GB → 6G heap / 7g container limit.
MC_MEMORY=6G
MC_CONTAINER_MEM_LIMIT=7g
MC_PORT=25565
# BlueMap web map port (used when the bluemap mod is installed)
MAP_PORT=8100
MC_MOTD=A cozy server for friends
MC_DIFFICULTY=normal
MC_MAX_PLAYERS=10
MC_VIEW_DISTANCE=10
MC_SIMULATION_DISTANCE=8
# Leave empty for a random world seed
MC_SEED=
# Server-side mods (Modrinth project slugs, comma-separated).
# Exact version IDs are locked. Review all IDs before upgrading Minecraft.
MODRINTH_PROJECTS=fabric-api:bNnaTiuM,easyauth:Qd0CWVQP,spark:e3hsPc1o,lithium:xS0Q8LSi,ferrite-core:d5ddUdiB
# To run a full modpack instead, set its Modrinth slug (e.g. adrenaline)
# and see docs/mods-and-modpacks.md before enabling.
MODRINTH_MODPACK=
# ── Secrets (generated by scripts/setup.sh — never commit .env) ──────────
RCON_PASSWORD=CHANGE_ME
PANEL_SESSION_SECRET=CHANGE_ME
# Initial dashboard admin password. Used only to seed the first login;
# you are forced to change it in the UI afterwards.
PANEL_ADMIN_PASSWORD=CHANGE_ME
# Absolute checkout path on the Docker host (setup.sh fills this in).
PROJECT_DIR=
# ── Dashboard ────────────────────────────────────────────────────────────
DASHBOARD_PORT=8080
# Minutes an approved player has to /register before approval expires
REGISTRATION_WINDOW_MINUTES=2
# Optional: Discord webhook for alerts (joins, downtime, backups, lag)
DISCORD_WEBHOOK_URL=
# ── Backups ──────────────────────────────────────────────────────────────
# Interval between automatic backups (e.g. 6h, 24h)
BACKUP_INTERVAL=24h
# Delete backups older than this many days
BACKUP_RETENTION_DAYS=7
# ── Misc ─────────────────────────────────────────────────────────────────
TZ=UTC