Skip to content

abnazhor/harbour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harbour

A simple docker setup for Minecraft servers

Harbour has been written to support mods and other runtimes apart from the official one. This means it should be compatible with runtimes such as Forge or Fabric.

Installing

To start from scratch, please run the following command:

npm run initial-setup

In case your setup uses pnpm, it should work with pnpm run initial-setup

This will create the required folders for your base installation. It will also recreate some configuration files such as mods.json and runtime.json.

Running Harbour

To run Harbour on a docker environment, please run the following command:

docker-compose up --build -d

Configuration files

runtime.json

This folder contains the specific URL from which the server should pull the executable .jar file. It must be an URL and needs to return a valid .jar file.

This source URL can be obtained directly from the game's website in case of using the vanilla version and from Fabric's server website in case of using Fabric.

mods.json

This is where all the mods are listed. Harbour downloads them directly from the specified source and moves them into the mods folder so you don't have to do anything. A mod entry should contain the following properties to work:

    {
        "name": "Lithium", // Name of the mod
        "version": "0.11.2", // Version of the mod
        "gameVersion": "1.20.1", // Version of the game
        "url": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/ZSNsJrPI/lithium-fabric-mc1.20.1-0.11.2.jar" // URL containing the .jar file
    }

Most of those properties are just for additional information, as long as you have a valid URL you can leave the rest as empty fields. However, when it comes to maintenance having those three additional fields improves a lot when upgrading.

In case of not requiring any mods, just leave an empty array and you are good to go.

About

Minecraft dockerized server setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published