Minecraft
Docker compose.yml
services: mc: image: itzg/minecraft-server:latest container_name: minecraft_server ports: - "25565:25565" # Minecraft game port environment: EULA: "TRUE" # IMPORTANT: Set to TRUE to accept the Minecraft EULA TYPE: "PAPER" # Server type (e.g., VANILLA, FORGE, SPONGE, PAPER) VERSION: "LATEST" # Minecraft version (e.g., 1.20.4) # MEMORY: "2G" # Allocate 2GB of RAM to the server # MODE: "survival" # Game mode # DIFFICULTY: "normal" # Game difficulty # MOTD: "Welcome to my Docker Minecraft Server!" # Message of the Day volumes: - ./data:/data
