# docker-spigot

> Self-hosted Docker image that builds and runs a Spigot Minecraft server with configurable versions, memory settings, and automatic EULA acceptance.

- **Category:** Game Servers
- **Open source:** oss
- **Languages:** Shell, Dockerfile
- **Platforms:** Docker
- **Tags:** Ubuntu, Game Server, Minecraft, Docker, Java, Self Hosted, Spigot, Docker image, Spigot Server, Openjava

## Description

docker-spigot is a Docker image that builds and runs a Spigot Minecraft server on Ubuntu 20.04 with Eclipse Adoptium Java (versions 8 through 21). On first launch it downloads BuildTools and compiles the Spigot JAR for the chosen Minecraft version (defaulting to latest). Users can pick specific Minecraft versions via SPIGOT_VER, switch versions in a running container, configure memory limits (MC_MAXMEM, MC_MINMEM), set extra Java options, and control the server through docker exec commands (mc_start, mc_stop, mc_restart, mc_send, mc_log). The image handles EULA acceptance via an environment variable, auto-detects the timezone, changes the minecraft user's UID to match mounted volume ownership, and performs graceful shutdown on docker stop. It supports Minecraft versions from 1.8.3 through 1.20+ with appropriate Java versions selected automatically.

## Links

- [Homepage](https://github.com/nimmis/docker-spigot)
- [Docker](nimmis/spigot)
- [GitHub Repository](https://github.com/nimmis/docker-spigot)
- [Docker Hub](https://hub.docker.com/r/nimmis/spigot)

---
Source: https://selfhost.directory/project/docker-spigot