Minecraft Server Setup

Docker + Domain Configuration Guide

Before You Begin

Part 1: Base Server Setup

  1. Get the files: Download the preferred version from Releases and then extract the files to your preferred storage location.
  2. Accept the EULA:
    • Navigate to ./minecraft-docker/server/
    • Open eula.txt
    • Change eula=falseeula=true
  3. Configure the server: Edit server.properties. By default, whitelist is enabled (recommended).
  4. Choose server version: Replace server.jar in ./minecraft-docker/build/ to use another version (e.g., Paper).
  5. Adjust memory (optional):
    • Edit ./minecraft-docker/Dockerfile
    • Key arguments:
      • -Xms2G → Minimum RAM
      • -Xmx8G → Maximum RAM
  6. Start the server:
    docker compose up
  7. Whitelist players:
    docker attach minecraft
    whitelist add <minecraft_username>
  8. Test locally: Launch Minecraft and connect to localhost.

Part 2: Domain + Port Forwarding (Optional)

  1. Find your public IP: Visit whatsmyip.com.
  2. Set up DNS:
    • Create an A record (e.g., play.yourdomain.com)
    • Point it to your public IP
    • Use port 25565
  3. Allow firewall traffic (Windows):
    • Open Windows Defender Firewall
    • Create a new Inbound Rule for TCP port 25565
  4. Port forward on your router: Forward TCP 25565 to your server’s local IP.
  5. Test external access:
    • Other computers connect with play.yourdomain.com
    • Host machine connects with localhost
✅ At this point, your server should be running and accessible both locally and (if configured) via your domain.