This repository contains the Docker configuration for the HelloWorldSMP Minecraft Forge server. It includes the setup for the Minecraft server itself and a Playit.gg agent for simplified networking.
- Image: itzg/minecraft-server:java21
- Type: FORGE
- Version: 1.21.10
- Java Version: 21
- Memory: 4G
- Port: 25565
- Image: ghcr.io/playit-cloud/playit-agent:latest
- Network Mode: Service bound to 'mc' container
- Purpose: Provides public access tunneling without port forwarding
- Docker
- Docker Compose
- Clone this repository.
- Navigate to the directory.
- Start the server:
docker compose up -d
- Check logs (optional):
docker compose logs -f
The server configuration is managed via environment variables in the docker-compose.yml file. Important variables include:
EULA: Must be set to "TRUE" to run the server.VERSION: Minecraft version.TYPE: Server type (FORGE).MEMORY: Heap size for Java.MOTD: Message of the Day.DIFFICULTY: Game difficulty.MAX_PLAYERS: Maximum concurrent players.
- World data and server files are stored in the
./datadirectory (excluded from version control). - Playit agent data is stored in
./playit_data(excluded from version control).