How to Run Minecraft Java and Bedrock Servers Using Docker Compose
A tutorial published on DEV Community walks through running both Minecraft Java and Bedrock Edition servers inside Docker containers, building on a previous guide that covered bare-metal installation. The setup uses community-maintained images from the itzg project, available on Docker Hub, configured via docker-compose.yaml files. Key advantages over direct installation include automatic restarts on failure, isolated data persistence through named volumes, and fully declarative configuration in a single versionable file. Bedrock servers communicate over UDP on port 19132, while Java Edition uses TCP on port 25565, a distinction the guide highlights as critical for correct port mapping. The itzg images also bundle an RCON CLI tool, allowing server commands to be executed without attaching directly to the running container process.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in