Docker Image for Minecraft server
Installation
- Change settings in the ./docker/spigot/minecraft/server.properties file (DON'T TOUCH server-port) and yml configuration
- Place your world in ./docker/spigot/minecraft folder (no require)
- Change the version in the docker-compose.yml file. (no require)
docker-compose up -d --build
- Please note that the installation takes time because it uses the BuildTools of Spigot. For the version, please indicate a valid version. For more information: https://www.spigotmc.org/wiki/buildtools/
Start
docker-compose up -d
Perform a minecraft command
docker exec -it spigot ./mc <Minecraft Command>
Stop
docker exec -it spigot ./mc stop
docker-compose down
Build multiple container
From the docker-compose
- Remove volumes key and value.
- Remove the container_name key.
- Modify ports values:
ports:
- 25565-25565
Perform the docker-compose command
docker-compose up --scale spigot=[Container count] -d