feat(server): add spigot configuration patches and compose updates

- Add .gitignore to exclude 'data' directory
- Update compose.yaml for paper service to mount patches volume and set PATCH_DEFINITIONS env var
- Add timezone mounts to 'paper' and 'backup' services in compose.yaml
- Create patches/spigot.json to patch spigot.yml with custom item-despawn-rate
This commit is contained in:
2025-10-20 12:23:58 -06:00
parent 307f13cfda
commit a333bc1e3a
3 changed files with 18 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,4 @@
.env
archive
archive
data

View File

@@ -2,21 +2,26 @@ services:
paper:
image: itzg/minecraft-server:java21-alpine
restart: unless-stopped
environment:
- PATCH_DEFINITIONS=/patches
env_file:
- .env
volumes:
- server-data:/data
# - ./data:/data
- ./patches:/patches
- ./config:/config
ports:
- 25565:25565
labels:
- /etc/timezone:/etc/timezone:ro
- docker-volume-backup.stop-during-backup=minecraft
backup:
image: offen/docker-volume-backup:latest
restart: unless-stopped
volumes:
- /etc/timezone:/etc/timezone:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- server-data:/backup/server-data
- ./archive:/archive

11
patches/spigot.json Normal file
View File

@@ -0,0 +1,11 @@
{
"file": "/data/spigot.yml",
"ops": [
{
"$set": {
"path": "$.world-settings.default.item-despawn-rate",
"value": 12000
}
}
]
}