A simple Forge Minecraft server, running in a docker container.
3.3K
A simple NeoForge Minecraft server, running in a docker container. Supports both x86_64 and arm64 hardware architecture.
docker run -it \
--name minceraft \
-p 25565:25565 \
-v /minceraft:/server \
jimurrito/minceraft:latest
Using
latestdocker tag will pull whatever is the newest support minecraft/forge version used by Minecraft. If you want to play on a specific version, you can use the tag. I.E:jimurrito/minceraft:1_21_1for version 1.21.1.
docker run -it \
--name minceraft \
-v /path/to/mods:/mods \
-e LEVELNAME="My Minceraft Server" \
-e LEVELSEED="docker" \
-p 25565:25565 \
-v /minceraft:/server \
jimurrito/minceraft:latest
docker run -it \
--name minceraft \
-v /path/to/mods:/mods \
-v /path/to/logs:/logs \
--env-file ./server.env \
-p 25565:25565 \
-v /minceraft:/server \
jimurrito/minceraft:latest
./server.env
LEVELNAME="My Minceraft Server"
LEVELSEED="docker"
MOTD="I love Minceraft!"
All options within the server.properties file have been ported to environmental variables. Using these variables, the server.properties file is regenerated on each startup of the container. It's recommended to use a .env file for your variables to avoid unexpected changes to your server configuration.
Options below are used to generate server.properties on each start-up.
| Variable | Description | Default |
|---|---|---|
| ALLOWFLIGHT | Allows players to fly in Survival mode | false |
| ALLOWNETHER | Allows players to travel to the Nether | true |
| BROADCASTCONSOLETOOPS | Sends console commands to operators | true |
| BROADCASTRCONTOOPS | Sends RCON commands to operators | true |
| BUGREPORTLINK | URL for bug reporting | "" |
| DEBUG | Enables debug mode | false |
| DIFFICULTY | Sets the difficulty level (peaceful, easy, normal, hard) | easy |
| ENABLECOMMANDBLOCK | Enables command blocks | true |
| ENABLEJMXMONITORING | Enables JMX monitoring | false |
| ENABLEQUERY | Enables GameSpy4 protocol server listener | false |
| ENABLERCON | Enables remote access to the server console | false |
| ENABLESTATUS | Enables server status | true |
| ENFORCESECUREPROFILE | Enforces secure profiles | true |
| ENFORCEWHITELIST | Enforces the whitelist | false |
| ENTITYBROADCASTRANGEPERCENTAGE | Entity broadcast range percentage | 100 |
| FORCEGAMEMODE | Forces players to join in the default game mode | false |
| FUNCTIONPERMISSIONLEVEL | Permission level for function commands | 2 |
| GAMEMODE | Sets the game mode (survival, creative, adventure, spectator) | survival |
| GENERATESTRUCTURES | Generates structures like villages | true |
| GENERATORSETTINGS | Custom generator settings | {} |
| HARDCORE | Enables hardcore mode | false |
| HIDEONLINEPLAYERS | Hides online players from the server list | false |
| INITIALDISABLEDPACKS | Initial disabled data packs | "" |
| INITIALENABLEDPACKS | Initial enabled data packs | vanilla |
| LEVELNAME | Name of the level | world |
| LEVELSEED | Seed for the level generator | "" |
| LEVELTYPE | Type of the level generator | minecraft:normal |
| LOGIPS | Logs player IP addresses | true |
| MAXCHAINEDNEIGHBORUPDATES | Maximum chained neighbor updates | 1000000 |
| MAXPLAYERS | Maximum number of players | 20 |
| MAXTICKTIME | Maximum tick time | 60000 |
| MAXWORLDSIZE | Maximum world size | 29999984 |
| MOTD | Message of the day | A Minecraft Server |
| NETWORKCOMPRESSIONTHRESHOLD | Network compression threshold | 256 |
| ONLINEMODE | Server verifies connecting players | true |
| OPPERMISSIONLEVEL | Operator permission level | 4 |
| PLAYERIDLETIMEOUT | Player idle timeout | 0 |
| PREVENTPROXYCONNECTIONS | Prevents proxy connections | false |
| PVP | Enables player vs player combat | true |
| QUERYPORT | Query port | 25565 |
| RATELIMIT | Rate limit for packets | 0 |
| RCONPASSWORD | RCON password | "" |
| RCONPORT | RCON port | 25575 |
| REGIONFILECOMPRESSION | Region file compression method | deflate |
| REQUIRERESOURCEPACK | Requires players to use the resource pack | false |
| RESOURCEPACK | URL to the resource pack | "" |
| RESOURCEPACKID | Resource pack ID | "" |
| RESOURCEPACKPROMPT | Resource pack prompt message | "" |
| RESOURCEPACKSHA1 | SHA-1 hash of the resource pack | "" |
| SERVERIP | Server IP address | "" |
| SERVERPORT | Server port | 25565 |
| SIMULATIONDISTANCE | Simulation distance | 10 |
| SPAWNANIMALS | Spawns animals | true |
| SPAWNMONSTERS | Spawns monsters | true |
| SPAWNNPCS | Spawns NPCs | true |
| SPAWNPROTECTION | Spawn protection radius | 16 |
| SYNCCHUNKWITES | Synchronizes chunk writes | true |
| TEXTFILTERINGCONFIG | Text filtering configuration | "" |
| USENATIVETRANSPORT | Uses native transport | true |
| VIEWDISTANCE | View distance | 10 |
| WHITELIST | Enables the whitelist | false |
Content type
Image
Digest
sha256:799b2b468…
Size
940.8 MB
Last updated
about 1 month ago
docker pull jimurrito/minceraft