Skip to content

waphun/docker-mindustry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Small and simple to set up mindustry server.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 72.4%
  • Dockerfile 27.6%