Minecraft 26.2 Modpack Server (Paper, Fabric, Forge)
A Minecraft Java Edition server on Railway: Paper by default, or vanilla, Fabric, Forge, NeoForge or a Modrinth or CurseForge modpack. The world is on a volume, backups go to a Railway Bucket, and a password-protected web console runs commands.
What you get
- Minecraft server built on the itzg/minecraft-server image, default Paper and Minecraft 26.2 with a 3 GB heap
- TCP proxy address for players to connect
- Volume at /data for the world
- Backups every 6 hours to a Railway Bucket, kept 7 days by default
- Web console behind basic auth for running commands
Good for
- A private survival or creative server for friends and family
- A Paper server with plugins for a small community
- Modded play with Modrinth or CurseForge modpacks
- A test server for plugin or datapack development
Services in this template
- Console · from
baranberkay96/minecraft-modpack-railway - Minecraft · from
baranberkay96/minecraft-modpack-railway
Questions people ask
How do I start it?
Set EULA to TRUE after reading Mojang's EULA. Wait for Done in the logs, then copy the TCP proxy address from the Minecraft service networking settings and share it with players.
How do I use the console?
Open the Console URL and sign in with admin and CONSOLE_PASSWORD. Run op followed by your player name to make yourself an operator.
Can Bedrock players join?
No. Only Java Edition clients are supported, because Railway has no UDP.
How much memory do modpacks need?
The template notes that modpacks need MEMORY raised to 6G to 8G. Raise it together with your plan limit, and lower VIEW_DISTANCE or SIMULATION_DISTANCE to save resources.
How do backups and restores work?
Backups run every BACKUP_INTERVAL_HOURS with BACKUP_RETENTION_DAYS retention. To restore, set RESTORE_BACKUP to latest or a file name and redeploy; the previous data is kept in a /data/.pre-restore folder. Worlds can be upgraded but not downgraded.
Full template README
Deploy and Host Minecraft with Railway
Run your own Minecraft Java Edition server on Railway: vanilla, Paper with plugins, Fabric, Forge or a full Modrinth/CurseForge modpack. The world lives on a persistent volume, backups go to a Railway Bucket every few hours, and a password-protected web console lets you run commands from the browser.
About Hosting Minecraft
A Minecraft server is a single Java process that needs a fixed amount of memory, a reachable TCP port, durable storage for the world and a clean shutdown so chunks are saved. This community template builds on the widely used itzg/minecraft-server image (pinned), which downloads the server type and version you choose on first start. It adds three things for Railway: a TCP proxy for players, automatic backups that pause world saves through RCON and stream compressed archives to a Railway Bucket, and a small web console that talks to the server over the private network. You must accept Mojang's EULA yourself when deploying.
Common Use Cases
- A private survival or creative server for friends and family
- A Paper server with plugins for a small community
- Modded play with Modrinth or CurseForge modpacks (Fabric, Forge, NeoForge)
- A test server for plugin or datapack development
Dependencies for Minecraft Hosting
- Minecraft: Java Edition clients (Bedrock is not supported: Railway has no UDP)
- Acceptance of the Minecraft EULA (set
EULA=TRUE) - A Railway volume for
/dataand a Railway Bucket for backups (both included)
Deployment Dependencies
- itzg/minecraft-server documentation: https://docker-minecraft-server.readthedocs.io/
- Image releases: https://github.com/itzg/docker-minecraft-server/releases
- Minecraft EULA: https://aka.ms/MinecraftEULA
- Railway TCP proxy: https://docs.railway.com/networking/tcp-proxy
- Railway Storage Buckets: https://docs.railway.com/storage-buckets
Implementation Details
| Service | Source | Purpose |
|---|---|---|
| Minecraft | Dockerfile FROM itzg/minecraft-server:2026.10.0-java25 |
Game server (TCP proxy → 25565), volume at /data, in-container backup scheduler |
| Console | Dockerfile FROM caddy:2.11.7-alpine |
Web console behind basic auth, proxies to the server's WebSocket console over the private network |
| Bucket | Railway Storage Bucket | Compressed world backups |
First start
- Set
EULAtoTRUEafter reading the EULA. Defaults: Paper, Minecraft 26.2, 3 GB heap. - Wait for "Done" in the Minecraft logs, then copy the TCP proxy address from Minecraft → Settings → Networking. Players add it as
{host}:{port}. - Open the Console URL, sign in with
adminandCONSOLE_PASSWORD, and runop {YourName}.
Server types and modpacks: set TYPE to FABRIC, FORGE or NEOFORGE, or use TYPE=MODRINTH with MODRINTH_MODPACK, or TYPE=AUTO_CURSEFORGE with CF_SLUG. For modpacks, set VERSION to the pack's Minecraft version (or LATEST) and raise MEMORY to 6G-8G. Packs that need Java 21 or 17: set MC_IMAGE_TAG=2026.10.0-java21 (or -java17). Optional extras such as OPS, WHITELIST, MODRINTH_PROJECTS and CF_API_KEY can be added as variables.
Backups: every BACKUP_INTERVAL_HOURS (6) with BACKUP_RETENTION_DAYS (7) retention. Run mc-backup now or mc-backup list through railway ssh. To restore, set RESTORE_BACKUP=latest (or a file name) and redeploy. The previous data is kept in /data/.pre-restore-{time}.
Scaling: a Minecraft world runs in one process, so keep one replica and give it more memory and CPU instead (MEMORY plus your plan limit). Lower VIEW_DISTANCE / SIMULATION_DISTANCE to save resources.
Pinning and upgrades: the image is pinned through MC_IMAGE_TAG and the game through VERSION. Take a backup before changing either. Worlds can be upgraded but not downgraded.
Why Deploy Minecraft on Railway?
Railway gives you a dedicated server without managing a VPS: persistent storage, a TCP address for players, logs, SSH and usage-based billing for the RAM and CPU your world actually uses. Backups and a browser console are already wired up, so you can get from deploy to playing with friends in a few minutes.
Guides for this template
View Minecraft 26.2 Modpack Server (Paper, Fabric, Forge) on railway.com
Similar templates
| Template | Category | DeploymentsDeploys |
|---|---|---|
| Chatwoot A customer communication platform | Other | 5,871 |
| Ubuntu-Linux Ubuntu terminal accessible via web browser | Other | 4,926 |
| Ubuntu SSH + Claude ARA TM —SSH server with root access + Claude Code pre-installed. | Other | 4,682 |
| Debian-Linux Debian terminal accessible via web browser. | Other | 2,883 |
| Code Server VS Code in the browser | Other | 2,787 |
| Kali Linux (Web Terminal) Instant Kali Linux browser terminal powered by ttyd | Other | 2,632 |