Deploy Minecraft Forge Server for mods

Forge modded Minecraft Java server with a persistent world

Deploy Minecraft Forge Server for mods

Minecraft Forge Server

itzg/minecraft-server:latest

Just deployed

/data

Deploy and Host Minecraft Forge Server for mods on Railway

Run your own Forge modded Minecraft Java server on Railway and play with friends from the normal Minecraft Java Edition multiplayer menu. The world, configs and mods are kept on a volume, the server saves the world before every restart, and you choose the Minecraft version, memory, operators and whitelist from the service Variables.

About Hosting Minecraft Forge Server for mods

The template runs the open source itzg/minecraft-server:latest image (https://github.com/itzg/docker-minecraft-server) as one Railway service. The Minecraft server listens on port 25565, and Railway's TCP proxy gives it a public address that players connect to. A volume is mounted at /data for the world and all server files, so nothing is lost on restarts and redeploys, and the server gets time to save before Railway stops it.

Common Use Cases

  • Hosting a Forge modpack server for a group of friends
  • Running classic Forge mods on the exact Minecraft version they need
  • A server that keeps running when the host's PC is off

Dependencies for Minecraft Forge Server for mods Hosting

  • No other services: one container plus a volume
  • Minecraft on PC, using the multiplayer or join by IP menu
  • A Railway plan with enough memory: 2 GB or more is recommended

Implementation Details

Before the first start, set EULA to TRUE to accept the Minecraft EULA. After the deploy finishes, open the service, go to Settings, Networking and copy the TCP proxy address, for example something.proxy.rlwy.net:12345. In Minecraft, add a server with that address and port and join. The first start downloads the server and creates the world, which takes a minute or two; follow it in the deploy logs.

Put mod jars into /data/mods, or set MODRINTH_PROJECTS or MODS (download URLs) to fetch them on start. The default version is 1.20.1, the release with the most Forge mods; change VERSION to match your mods. Players need the same mods on their client.

The Java heap is sized automatically from the service memory, so the server fits any plan. For more players or heavy modpacks, give the service more memory (2 GB or more); set MEMORY only if you want a fixed heap.

Why Deploy Minecraft Forge Server for mods on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Minecraft Forge Server for mods on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

Minecraft Forge Server

itzg/minecraft-server:latest

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0