Sign inSign up

bbriggs/bukkit

By bbriggs

Updated over 5 years ago

A Bukkit and Spigot server on Docker

Image
22

1M+

bbriggs/bukkit repository overview

Build Status

Simple Tags

TagDockerfileNotes
1.81.8/Dockerfile
1.8.31.8.3/Dockerfile
1.8.71.8.7/DockerfileTag seems to have disppeared from the upstream. This project will no longer build it, but it will remain active for historical purposes.
1.8.81.8.8/Dockerfile
1.91.9/Dockerfile
1.9.21.9.2/Dockerfile
1.9.41.9.4/Dockerfile
1.101.10/DockerfileTag seems to have disppeared from the upstream. This project will no longer build it, but it will remain active for historical purposes.
1.10.21.10.2/Dockerfile
1.111.11/Dockerfile
1.121.12/Dockerfile
1.12.11.12.1/Dockerfile
1.12.21.12.2/Dockerfile
1.131.13/Dockerfile
1.13.11.13.1/Dockerfile
1.13.21.13.2/Dockerfile
latestlatest/Dockerfile

Docker Bukkit

A Docker Bukkit/Spigot server based on Alpine.

Running the server

To start the server and accept the EULA in one fell swoop, just pass the EULA=true environment variable to Docker when running the container. I recommend mounting a directory from your host onto /data in the container to make map and server data persistent.

docker run -it -v /data:/data -p 25565:25565 -e EULA=true --name mc_server bbriggs/bukkit

Spigot included

Yes, even though the repo's name is bukkit, we have included the lovely spigot server as well. To run the spigot server, supply it as an argument like so:

docker run -it -v /data:/data -p 25565:25565 -e EULA=true --name mc_server bbriggs/bukkit spigot

Configuration

You can bring your own existing data + configuration and mount it to the /data directory when starting the container by using the -v option. You may also pass configuration options as environment variables like so:

docker run -it -e DIFFICULTY=2 -e MOTD="A non-standard message" -e SPAWN_ANIMALS=false bbriggs/bukkit

This container will only attempt generate a server.properties file if one does not already exist. If you would like to use the configuration tool, be sure that you are not providing a configuration file or that you also set FORCE_CONFIG=true in the environment variables.

Environment Files

Because of the potentially large number of environment variables that you could pass in, you might want to consider using an environment variable file.

Example:

# env.list
ALLOW_NETHER=false
level-seed=123456789
EULA=true

docker run -d -it --env-file env.list -v $(pwd)/data:/data -p 25565:25565 bbriggs/bukkit

List of Environment Variables

A full list of server.properties settings and their corresponding environment variables is included below, along with their defaults

Configuration OptionEnvironment VariableDefault
allow-flightALLOW_FLIGHTfalse
allow-netherALLOW_NETHERtrue
difficultyDIFFICULTY1
enable-command-blockENABLE_COMMAND_BLOCKfalse
enable-queryENABLE_QUERYfalse
enable-rconENABLE_RCONfalse
force-gamemodeFORCE_GAMEMODEfalse
gamemodeGAMEMODE0
generate-structuresGENERATE_STRUCTUREStrue
generator-settingsGENERATOR_SETTINGS
hardcoreHARDCOREfalse
level-nameLEVEL_NAMEworld
level-seedLEVEL_SEED
level-typeLEVEL_TYPEDEFAULT
max-build-heightMAX_BUILD_HEIGHT256
max-playersMAX_PLAYERS20
max-tick-timeMAX_TICK_TIME60000
max-world-sizeMAX_WORLD_SIZE29999984
motdMOTD
network-compression-thresholdNETWORK_COMPRESSION_THRESHOLD256
online-modeONLINE_MODEtrue
op-permission-levelOP_PERMISSION_LEVEL4
player-idle-timeoutPLAYER_IDLE_TIMEOUT0
prevent-proxy-connectionsPREVENT_PROXY_CONNECTIONSfalse
pvpPVPtrue
resource-packRESOURCE_PACK
resource-pack-sha1RESOURCE_PACK_SHA1
server-ipSERVER_IP
server-portSERVER_PORT25565
snooper-enabledSNOOPER_ENABLEDtrue
spawn-animalsSPAWN_ANIMALStrue
spawn-monstersSPAWN_MONSTERStrue
spawn-npcsSPAWN_NPCStrue
view-distanceVIEW_DISTANCE10
white-listWHITE_LISTfalse
Running a specific version

To run a specific version of Bukkit or Spigot, use a docker tag.

Example: docker run -it -v /data:/data -p 25565:25565 -e EULA=true --name mc_server bbriggs/bukkit:1.9.4 spigot

Tag summary

Content type

Image

Digest

sha256:0f261aa06

Size

154.7 MB

Last updated

over 5 years ago

docker pull bbriggs/bukkit