Skip to content

Instantly share code, notes, and snippets.

@jhx0
Created October 31, 2022 13:38
Show Gist options
  • Select an option

  • Save jhx0/41064031d62fad245fbebcf2b91bd99f to your computer and use it in GitHub Desktop.

Select an option

Save jhx0/41064031d62fad245fbebcf2b91bd99f to your computer and use it in GitHub Desktop.
Simple Minecraft server via Docker
version: "3"
services:
mc:
image: itzg/minecraft-server
ports:
- 25565:25565
environment:
EULA: "TRUE"
MOTD: ".:: §cSimple §aMinecraft§f Server ::."
DIFFICULTY: "easy"
ENABLE_RCON: "true"
RCON_PASSWORD: "PASSWORD"
MAX_PLAYERS: 10
ALLOW_NETHER: "true"
ANNOUNCE_PLAYER_ACHIEVEMENTS: "true"
GENERATE_STRUCTURES: "false"
SNOOPER_ENABLED: "false"
SPAWN_NPCS: "false"
MODE: "survival"
SERVER_NAME: "SimpleServer"
ALLOW_FLIGHT: "TRUE"
MEMORY: "4G"
TZ: "Europe/Berlin"
tty: true
stdin_open: true
restart: unless-stopped
volumes:
- /srv/mc-server:/data
- /etc/timezone:/etc/timezone:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment