📢 This article was translated by gemini-3-flash-preview
Using the Image
Image: https://hub.docker.com/r/itzg/minecraft-server
GitHub: https://github.com/itzg/docker-minecraft-server
Documentation: https://docker-minecraft-server.readthedocs.io/en/latest/
Configuration
Vanilla
| |
Forge
| |
Check versions here: https://files.minecraftforge.net/net/minecraftforge/forge/
Modpacks
| |
Server Ports
Get the current zone:
| |
Open the port:
| |
Reload firewall:
| |
Verify:
| |
Custom Domain
Cloudflare proxying and Nginx reverse proxying are not supported for standard Minecraft traffic.
However, you can use an SRV record to allow connecting via a domain without specifying a port.
Fill in the record as follows:
- Name:
_minecraft._tcp.your-mc-server.yexca.net - Priority:
0 - Weight:
5or10 - Port:
25565(or your server port) - Target:
your-mc-server.yexca.net
Server Settings
After the first startup, configuration files will be generated in ./data. For specific settings, refer to the documentation:
https://minecraft.wiki/w/Server.properties