Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vollborn/spigot-dockerized
This is spigot! In a docker container. Who would have thought?
https://github.com/vollborn/spigot-dockerized
build-tools bukkit docker minecraft server spigot
Last synced: about 4 hours ago
JSON representation
This is spigot! In a docker container. Who would have thought?
- Host: GitHub
- URL: https://github.com/vollborn/spigot-dockerized
- Owner: vollborn
- Created: 2021-06-24T17:39:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-15T12:50:47.000Z (5 months ago)
- Last Synced: 2024-06-15T14:06:55.259Z (5 months ago)
- Topics: build-tools, bukkit, docker, minecraft, server, spigot
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spigot Dockerized
This is spigot! In a docker container. Who would have thought?
## Prerequesites
There are some things you will need beforehand.
- root privileges
- Docker & Docker Compose
- a working internet connection
## Configuration
1. Copy the *.env.example* file to *.env* and edit its entries, if needed.
```shell
# Linux & Mac
cp .env.example .env# Windows
copy .env.example .env
```2. Select your desired minecraft version.
```
VERSION=1.18
```3. Depending on your Minecraft version, you will need a different Java version.
```
JAVA_VERSION=17
```| Minecraft Version | Java Version |
|-------------------|--------------|
| 1.18 | 17 |
| 1.17 | 16 |
| 1.12 - 1.16 | 11 |
| 1.8 - 1.11 | 8 |4. Specify your maximal and minimal memory that can be used. Use **M** as unit for megabytes and **G** for gigabytes.
```
MEMORY_MAX=2048M
MEMORY_MIN=512M
```5. Select your local folder where the server files should be stored.
```
SERVER_DIRECTORY=/opt/spigot-dockerized/server
```6. If you want to rebuild and update your Spigot version on every restart, you need to set **BUILD_ON_START** to true and define a persistent build tools directory.
```
BUILD_ON_START=true
BUILD_TOOLS_DIRECTORY=/opt/spigot-dockerized/build-tools
```
## Build the docker
You need to build the docker locally before you can start the server.
```shell
sudo docker-compose build
```
## Start the server
```shell
sudo docker-compose up
```... or in detached mode
```shell
sudo docker-compose up -d
```