Back to Templates
GameCP OfficialSandbox
Verified

Minecraft - Java Edition

Minecraft Java Edition dedicated server. The official Mojang server software with automatic Java version detection, JAR management, and mod support. Runs in Docker for isolated resource management.

v1
2/11/2026

Startup Command

Default

Standard Minecraft Java server startup

Default

Aikar's Flags (Optimized)

Optimized JVM flags recommended by Aikar for Minecraft servers. Best for servers with 10+ players.

Environment Variables

SERVER_NAME

RequiredRead Only

Server Name

Server name displayed in the server browser

Default
${SERVER_NAME}

MAX_PLAYERS

RequiredRead Only

Max Players

Maximum number of concurrent players

Default
${MAX_PLAYERS}

JAVA_XMX

RequiredRead Only

Max Memory (Xmx)

Maximum memory allocation for the Java process (e.g., 2G, 4G, 8G)

Default
2G

JAVA_XMS

RequiredRead Only

Initial Memory (Xms)

Initial memory allocation for Java (e.g., 1G, 2G)

Default
1G

Lifecycle Scripts

Installation Script

Downloads the Minecraft server JAR file and accepts the EULA.

before installghcr.io/ptero-eggs/installers:debian

Cleanup Old Logs Before Start

Cleans up old log files before starting the server

before start
Linux
Windows

Configuration Files

Server Properties

Main Minecraft server configuration file. Uses Rules Mode to update key=value pairs in the server-generated server.properties file.

//server.propertiesproperties
27 fields

Container Configuration

Docker Image

eclipse-temurin:21-jre-alpine

Technical Profile

Template ID

minecraft-vanilla

Author

GameCP Team

Last Updated

February 11, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp