![]() ![]() The TCP connections on port 25565 go to Traefik, and based on this rule, directed to the Minecraft container. In our case, TCP connections are required on port 25565 and HostSNI is used to route those coming in for * (all hosts). The labels prefixed with traefik are used to inform Traefik of how to route network traffic. In the docker-compose definition above, you might have noticed the container labels. The game server does not tick over when there are no players connected. It will also use Bukkit and enable auto pause. When starting, the container will prepare and run a Minecraft 1.16.5 server. The docker-compose definition will run a Docker container using the latest multiarch image (which will run on ARM devices). Image: itzg/minecraft-server:2021.1.0-multiarch-latest If you use docker-compose, then here is the simple service definition to get things running. There are other arch builds there that’ll run on just about any other platform. I found a great Minecraft Docker image that is well maintained and has the correct ARM image builds for use on Graviton2 hardware. First thing you’ll want to install is Docker, then you’re pretty much good to go. Give it an elastic IP address, set up the Security Group ingress rules accordingly, and get shell access. If you don’t use the CDK solution I mentioned above, then alternatively deploy yourself an EC2 instance. It is re-attached to a new instance from the autoscaling group if the old instance is terminated. When using these you need to make sure you have good data persistence that is not local to the EC2 instance. The downside is that it can be terminated at any time with only a couple of minutes of notice. Spot instance – this has massive savings over a normal lifecycle EC2 instance.You need to make sure you use ARM compatible packages or Docker images. The downside is more limited software choices. EC2 Graviton2 ARM based processor – slightly cheaper to run than Intel and AMD.The cost benefits to using this particular recipe are: You can read that article to get access to the CDK resources required to deploy it yourself. I used my Cheap Traefik EC2 Docker Hosting solution as the base. However for me price and control are important, and I much prefer to self host in this case.Ĭheap Minecraft Server in AWS EC2 with Traefik Various other Minecraft-as-a-service providers.This is not ideal, especially on Windows machines or systems that you don’t want to leave running 24/7 as you would for a dedicated server. Minecraft Server on a home PC / Workstation, with port forwarding to allow other players to connect.The ARM container was a little slow as a server for more than 2 or 3 players on Raspberry Pi hardware though. I then used port forwarding to get it working through my double NAT setup. I was even able to expose it over the internet for friends to play on by leveraging a Pi device as a dedicated router. ![]() Running Minecraft on my own personal Raspberry Pi Kubernetes Cluster. ![]() You can also get fairly cheap instances Vultr. If you just want a dedicated Minecraft VM in the cloud, then DigitalOcean is a good, cheap option. Here is what I’ve used in the past before settling on my current solution: There are other alternatives to consider if you’re looking for a cheap Minecraft server, so don’t take this as being the only option. This essentially levels up the cost savings even further as I don’t need multiple EC2 instances (one for each service), and I don’t even need to pay for something like an application or network load balancer, as Traefik does this for me. I use Traefik to route traffic coming in to this single host for various TCP ports as well as HTTP(s) on different hostnames. Minecraft runs in a container and sits alongside other personal websites and services that I host there too. I chose to go with a single AWS EC2 instance that runs Docker. You get some nice conveniences there but… I refuse to pay much at all when I can throw some infrastructure together myself in the cloud to create the ultimate cheap Minecraft server.Ĭonsidering my Docker instance running Traefik hosts another 3 or 4 of my personal services along with a Minecraft server, then this solution only costs me around £1.50 a month. According to the Minecraft Realms plan pricing page, you can get a realms server at around £5.59 per month. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |