feat: add docker/minecraft

This commit is contained in:
cătălin 2026-03-04 10:31:34 +01:00
commit b20e4f0ef4
No known key found for this signature in database
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,19 @@
---
services:
backrest:
image: garethgeorge/backrest:v1.11.2
container_name: backrest
hostname: backrest
volumes:
- ${DATA2BACKUP_DIR:-/mnt/zeruel}:/data2backup
- ${BACKREST_DATA_DIR:-/mnt/zeruel/nas1/shared/backrest/data}:/data
- ${BACKREST_CONFIG_DIR:-/mnt/zeruel/nas1/shared/backrest/config}:/config
- ${BACKREST_CACHE_DIR:-/mnt/zeruel/nas1/shared/backrest}:/cache
environment:
- BACKREST_DATA=/data
- BACKREST_CONFIG=/config/config.json
- XDG_CACHE_HOME=/cache
- TZ=Europe/Madrid
restart: unless-stopped
ports:
- "9898:9898"

View file

@ -0,0 +1,38 @@
---
services:
mc:
image: itzg/minecraft-server:java23-graalvm
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
MEMORY: ${MEMORY:-"6G"}
TZ: "Europe/Madrid"
VERSION: 1.21.1
ENABLE_ROLLING_LOGS: true
USE_AIKAR_FLAGS: true
MOTD: "Huesoperrers Minecraft Episodio 3: La venganza de los huesos"
MAX_PLAYERS: 10
MAX_WORLD_SIZE: 10000
SEED: huesoperrers3
MODE: survival
ONLINE_MODE: false
ALLOW_FLIGHT: true
SERVER_NAME: Huesoperrers and co.
PLAYER_IDLE_TIMEOUT: 15
STOP_SERVER_ANNOUNCE_DELAY: 30
OPS: ${OPS:-robosap1ens,commandkatt,Malva25}
SYNCHRONIZE: true
MERGE: true
ENFORCE_WHITELIST: true
ENABLE_RCON: false
MAX_TICK_TIME: -1
USER_API_PROVIDER: ${USER_API_PROVIDER:-playerdb}
DIFFICULTY: ${DIFFICULTY:-normal}
ENABLE_AUTOPAUSE: true
DEBUG_AUTOPAUSE: false
TYPE: NEOFORGE
volumes:
- ${MC_DATA_DIR:-/mnt/zeruel/nas1/shared/mc3}:/data