---
title: "Deploy Minecraft Forge Server for mods"
description: "Forge modded Minecraft Java server with a persistent world"
category: "Other"
url: https://railway.com/deploy/minecraft-forge-server-for-mods
---

# Deploy Minecraft Forge Server for mods

Forge modded Minecraft Java server with a persistent world

**[Deploy Minecraft Forge Server for mods on Railway](https://railway.com/template/minecraft-forge-server-for-mods)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/minecraft-forge-server-for-mods/manifest.json

- **Creator:** Nermin Sabanovic's Projects
- **Category:** Other

## Template content

### Minecraft Forge Server https://files.minecraftforge.net/static/images/logo.svg

- **Image:** itzg/minecraft-server:latest

## Documentation

# 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.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/minecraft-forge-server-for-mods
