minecraft-spigot/README.md

35 lines
832 B
Markdown
Raw Permalink Normal View History

## spigot server
spigot server
2017-03-10 01:01:10 +01:00
2017-03-10 01:06:18 +01:00
### Building spigot-server image
2017-03-10 01:01:10 +01:00
```
docker build -t zombi/spigot-server .
```
2017-03-10 01:05:46 +01:00
the spigot binaries are built on the first start of the container instance.
This might take a few minutes depending on the internet connection and computing power of the host system.
### Running spigot-server
2017-03-10 01:01:10 +01:00
2019-07-07 15:23:53 +02:00
First create the storage directory with the correct permissions
mkdir -p /data/minecraft/mc-server
chown 5:60 /data/minecraft/mc-server
2017-03-10 01:01:10 +01:00
```
docker run -it -d \
-v /data/minecraft/mc-server:/usr/games/mcserv \
--name spigot-server \
-p 25565:25565/udp \
-p 25565:25565/tcp \
2017-03-10 01:01:10 +01:00
zombi/spigot-server
```
2019-07-07 15:23:53 +02:00
on the first run the buildtools are building the spigot jar file and the container is exiting once done.
restart the container afterwards to run the minecraft server
docker start spigot-server