update Minecraft

This commit is contained in:
whitney 2026-04-13 14:09:46 -07:00
parent 4774042a41
commit 069535fefc
2 changed files with 19 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Minecraft # Minecraft
Self-host one or multiple servers. Self-host one or multiple servers.
## Setup ## Setup
### Whitelist ### Whitelist
@ -11,7 +11,7 @@ Add the following env vars in docker-compose.yml:
ENABLE_WHITELIST: "TRUE" ENABLE_WHITELIST: "TRUE"
WHITELIST: "player1,player2,player3" WHITELIST: "player1,player2,player3"
``` ```
The whitelist will be created in `whitelist.json` in the server directory. Adding something there will update the whitelist on the next run. The whitelist will be created in `whitelist.json` in the server directory. Adding something there will update the whitelist on the next run
#### Option 2: Manually #### Option 2: Manually
1. After first time startup set `enforce-whitelist=true` in `server.properties`. 1. After first time startup set `enforce-whitelist=true` in `server.properties`.
@ -34,6 +34,7 @@ Add users via server commands (`whitelist add NAME`).
##### Plugins (Updated 3/29/2026) ##### Plugins (Updated 3/29/2026)
[OnePlayerSleep+](https://modrinth.com/plugin/oneplayersleepgg?version=1.21.11&loader=paper) [OnePlayerSleep+](https://modrinth.com/plugin/oneplayersleepgg?version=1.21.11&loader=paper)
[NoEndermanGrief](https://modrinth.com/plugin/no-enderman-griefing/version/1.0) [NoEndermanGrief](https://modrinth.com/plugin/no-enderman-griefing/version/1.0)
[Dynmap](https://www.curseforge.com/minecraft/bukkit-plugins/dynmap/files/7460127)
#### Plugins (Old) #### Plugins (Old)
SinglePlayerSleep: `https://www.spigotmc.org/resources/singleplayersleep.68139/` SinglePlayerSleep: `https://www.spigotmc.org/resources/singleplayersleep.68139/`
@ -45,6 +46,15 @@ ajLeaderboards: `https://www.spigotmc.org/threads/ajleaderboards.471179/`
Obtain the new jar file for the updated plugin, stop server and swap old jar in `plugins/`. Obtain the new jar file for the updated plugin, stop server and swap old jar in `plugins/`.
Most plugins should not need to regenerate their data, so you can leave it as is. Most plugins should not need to regenerate their data, so you can leave it as is.
#### Plugin Configuration
##### Dynmap
After starting the server, go to the Dynmap plugin folder (`plugins/dynmap/configuration.txt`) and set the following:
```bash
webserver-bindaddress: 0.0.0.0
webserver-port: 8123
```
## Maintenance ## Maintenance
### Backups ### Backups

View File

@ -13,10 +13,11 @@ services:
container_name: minecraft_solo container_name: minecraft_solo
restart: unless-stopped restart: unless-stopped
networks: networks:
- grafana - traefik
- minecraft - minecraft
ports: ports:
- "25567:25565" - "25567:25565"
# - "8127:8123"
volumes: volumes:
- /pwspool/games/minecraft/minecraft_solo:/data - /pwspool/games/minecraft/minecraft_solo:/data
environment: environment:
@ -35,9 +36,12 @@ services:
- GENERATE_STRUCTURES=true - GENERATE_STRUCTURES=true
- MOTD="\u00A77Pinnerland Creative Server, powered by \u00A75P\u00A79W\u00A75S\u00A77\!" - MOTD="\u00A77Pinnerland Creative Server, powered by \u00A75P\u00A79W\u00A75S\u00A77\!"
- PVP=false - PVP=false
- ALLOW_FLIGHT=true - ALLOW_FLIGHT=true
labels: labels:
- "traefik.enable=false" - traefik.http.routers.minemap-solo.rule=Host(`minemap-solo.whitney.rip`)
- traefik.http.routers.minemap-solo.tls=true
- traefik.http.routers.minemap-solo.tls.certresolver=lets-encrypt
- traefik.http.services.minemap-solo.loadbalancer.server.port=8123
minecraft_creative: minecraft_creative:
image: itzg/minecraft-server:latest image: itzg/minecraft-server:latest