Skip to content

dhzdhd/mcserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server

Setup

Prerequisites

  • Download Ansible, Pulumi, RClone, Poetry and Azure CLI
  • Run az login to login to your Microsoft account for Pulumi
  • Create a remote for storing backups by running - rclone --config ./rclone.config config and follow the instructions shown.
  • Create a .env file using .env-example as a template
  • Download backups from OneDrive if they exist (only the needed .tgz file)
  • Run pulumi config set azure-native:location <desired_location>
  • Install all Ansible roles with ansible-galaxy install -r requirements.yml

Local setup

  • Copy the preferred backup .tgz file to backups/ directory
  • Run poetry install in iac/pulumi directory
  • Run pulumi -C iac/pulumi up -y
  • Copy the IP address returned by pulumi to ansible_host key in the cloudgroup group in iac/ansible/hosts.yml
  • Run ansible-playbook --ask-become-pass -i iac/ansible/hosts.yml iac/ansible/playbooks/main.yml
  • Access the server at <ip_address>:25565

Shutdown & Cleanup

  • Run pulumi -C iac/pulumi down -y

Configuration

Server config

  • To change server name/VM/location/image..., edit iac/pulumi/Pulumi.dev.yaml
  • To edit Ansible host config, edit iac/ansible/hosts.yaml

Minecraft config

  • To change Minecraft server settings/commands on startup..., edit the environment section in the mcserver service in docker-compose.yml

Credit

About

Infrastructure for a minecraft server hosted on an Azure VM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages