Skip to content

Terraform project for deploying a Minecraft: Java Edition server to Oracle Cloud

License

Notifications You must be signed in to change notification settings

chornsby/multiplayer-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Server Deployment

A Terraform project for deploying a game like Minecraft: Java Edition server to Oracle Cloud based on the instructions given in an Oracle blog post.

Getting Started

Download Terraform and clone this repository.

Create an Oracle Cloud account and generate an API Key for use with the Terraform provider. You will need to make a terraform.tfvars file in the project with the values from the API Key.

Usage

Run terraform init and make terraform. It will tell you if you forgot some variables otherwise it will create the required network resources and provision a VM.

Then run make install to install the currently configured multiplayer game: this is currently Valheim. The game will start automatically after installation as a systemd unit which will be restarted on failure. Additionally, backups are taken every hour and can be fetched using make backup.

To update the game run make update which will stop the running game service, update the software, and then start the game again.

Acknowledgements

This project was hacked together using bits and pieces from the following blog posts.

About

Terraform project for deploying a Minecraft: Java Edition server to Oracle Cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published