Minecraft Servers are difficult to deploy and manage on any public cloud service. Self deploying your own server with access management such as Spigot or Bukkit is hard. The documentation for deployment and customization is often incomplete or inadequate. Here's a tutorial that will run through all the steps to deploy a MC Server with Docker!
Spin up the t2.micro instance with Amazon Linux 2 on AWS. The advantage that Amazon-Linux offers is that its super secure, maintained by AWS (used in their infrastructure) and super light weight. Its best suited for running docker.
Keep Port 25565 open for TCP and UDP
Here's how you do it.
sudo amazon-linux-extras install docker sudo service docker start sudo usermod -a -G docker ec2-user # Make sure docker starts on system start sudo chkconfig docker on
Now install docker-compose:
# Download the binary - auto downloads the latest version sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose # Add permissions sudo chmod +x /usr/local/bin/docker-compose # Verify installation docker-compose version
Now logout of your console and restart a new console session. This should restart all necessary permissions
Wilfred is used to manage the dockerized Minecraft server.
pip does not come pre-installed on Amazon Linux 2
# Installing pip sudo yum -y install python-pip # Install wilfred pip install wilfred --upgrade # Check that its installed wilfred --version # Configure Wilfred wilfred setup
wilfred create > Server name: minecraft > Image UID: minecraft-vanilla > Port: 25565 > Memory: 1024 > Minecraft version: Latest
Use the IP Address of the EC2 Instance with Port 25565 in your Minecraft client.
Poorna's blog 2020-PRESENT. All the opinions on this blog are opinions only. I have no sponsors and I am not affliated with any platforms or ventures.