Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Hetsh/docker-mindustry

Repository files navigation

This Project is still work in progress.

Mindustry

Super small and simple mindustry server.

Running the server

docker run --tty --interactive --name mindustry --publish 6567:6567/tcp --publish 6567:6567/udp hetsh/mindustry

If you want to run the server in the background replace --tty --interactive with --detach.

Stopping the container

docker stop mindustry

Creating persistent storage

MP="/path/to/storage"
mkdir -p "$MP"
chown -R 1368:1368 "$MP"

1368 is the numerical id of the user running the server (see Dockerfile). Start the server with the additional mount flag:

docker run --mount "type=bind,source=$MP,target=/mindustry" ...

Automate startup and shutdown via systemd

The systemd unit can be found in my GitHub repository.

systemctl enable mindustry@<port> --now

Individual server instances are distinguished by host-port. By default, the systemd service assumes /apps/mindustry/<port> for persistent storage and /etc/localtime for timezone. Since this is a personal systemd unit file, you might need to adjust some parameters to suit your setup.

Fork Me!

This is an open project (visit GitHub). Please feel free to ask questions, file an issue or contribute to it.