Sign inSign up

hetsh/mindustry

By hetsh

•Updated almost 3 years ago

Simple to set up Mindustry server.

Image
1

8.9K

hetsh/mindustry repository overview

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.

Tag summary

Content type

Image

Digest

sha256:c84e11a6c…

Size

72.8 MB

Last updated

almost 3 years ago

docker pull hetsh/mindustry