Skip to content

kawaii/docker-spigot-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-spigot-server

Dockerfile using my Spigot builder image to spin up a server instance.

Usage

The Spigot server.properties file is generated dynamically by the entrypoint each time the container is started. In the case a variable is not provided, safe defaults are interpolated and used.

docker container run -p 25565:25565 -e SPIGOT_AGREE_EULA=true kawaii/spigot-server:1.15.2
services:
  spigot:
    environment:
      SPIGOT_AGREE_EULA: 'true'
      SPIGOT_LEVEL_NAME: dockercraft
    image: kawaii/spigot-server:1.15.2
    ports:
    - 0.0.0.0:25565:25565/tcp
version: '3.7'

... via docker build

docker build \                         
  --build-arg BUILD_AUTHORS="Kane 'kawaii' Valentine <kane@cute.im>" \
  --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
  --build-arg SPIGOT_VERSION=1.15.2 \
  --tag kawaii/spigot-server:1.15.2 \
$PWD

Persisting Data

To be completed soon™.

Installing Plugins

To be completed soon™.