Giter VIP home page Giter VIP logo

azure-minecraft-docker's Introduction

Minecraft Server powered by Docker & Azure Container Instance

This repo deploys itzg/minecraft-server as Azure Container Instance, using Terraform.

ci-scripted ci-vanilla ci-dotnet

alt text

Instructions

There are 2 ways to set this up:

Codespace setup

The easiest method is to use a GitHub Codespace (in beta). Just create a GitHub Codespace from the Code menu. Wait for the Codespace to complete provisioning. When the Codespace has completed provisioning and you open a terminal window (Ctrl-`, Control-backquote), you should see a message like this:

To provision infrastructure, make sure you're logged in with Azure CLI e.g. run 'az login' and 'az account set --subscription 00000000-0000-0000-0000-000000000000'. Then, either:
 - change to the /home/codespace/workspace/azure-minecraft-docker/terraform directory and run 'terraform apply', or:
 - run /home/codespace/workspace/azure-minecraft-docker/scripts/deploy.ps1 -apply
To destroy infrastructure, replace 'apply' with 'destroy' in above commands

Just follow these steps to provision Minecraft on Azure.

Local setup

If you set this up locally, make sure you have the following pre-requisites:

On macOS, you can run brew bundle to install the pre-requisites.

Once you have those, you can go ahead and provision:

  • Use Azure CLI for SSO with Terraform: az login
  • Select subscription to use: az account set --subscription 00000000-0000-0000-0000-000000000000
  • Initialize terraform: terraform init
  • Provision cloud infrastructure: terraform apply

Customization

You can customize the deployment by overriding defaults for Terraform input variables. The easiest way to do this is to copy config.auto.example.tfvars and save it as config.auto.tfvars.

  • Use the minecraft_users array to define users allowed to log in
  • Use a custom DNS name with vanity_dns_zone_id and vanity_hostname_prefix, using an Azure DNS managed domain
  • Once things get serious, you may want to start backing up data with enable_backup
  • Are your kids home schooling on the same computer that has Minecraft installed? Configure auto shutdown & startup during weekdays with enable_auto_startstop, start_time & stop_time. The Logic App triggers created can be favorited in the mobile app for on-demand startup & shutdown.
  • Concerned about chat messages appearing in logs? enable_log_filter uses the Console Spam Fix and configures it to hide chat messages from logs. This feature is dependent on PowerShell and is more brittle in automation, but satisfies a key privacy requirement.

See variables.tf for all input variables.

Dashboard

Once provisioned, a dashboard like this will be available in the Azure Portal:

alt text You can update the dashboard in the portal and re-generate the template using templatize_dashboard.ps1.

Resources

azure-minecraft-docker's People

Contributors

geekzter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

azure-minecraft-docker's Issues

Java Edition Keeps Crashing

Any ideas why the java edition keeps crashing?
The bedrock runs fine though?
I am running the terraform deployment. I have not made any other changes.
I removed all my customisations, using the older 1.16.5 when I forked it a couple months ago before bedrock worked fine.

Mods in Azure-Minecraft-Docker

Hey Geekzter,

What's the process of getting mods running in the Bukkit version of the deployed app?

Interested in chatting about this - thanks!

Pricing ?

Is this solution to implementing a minecraft server really efficient ?
Based on the dashboard screen cap you provided, you will be paying nearly 50โ‚ฌ for 30 days and that at a really low memory/network/cpu usage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.