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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
.env
|
||||
|
||||
archive
|
||||
archive
|
||||
data
|
||||
|
||||
@@ -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
11
patches/spigot.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"file": "/data/spigot.yml",
|
||||
"ops": [
|
||||
{
|
||||
"$set": {
|
||||
"path": "$.world-settings.default.item-despawn-rate",
|
||||
"value": 12000
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user