add mods and lazytainer

This commit is contained in:
Rémi Heredero 2024-05-11 18:48:56 +02:00
parent 08485f3e1c
commit b79fff0e70
44 changed files with 48 additions and 41 deletions

View File

@ -57,30 +57,38 @@ services:
minecraft-test-docker: minecraft-test-docker:
image: itzg/minecraft-server image: itzg/minecraft-server
restart: unless-stopped restart: "unless-stopped"
stdin_open: true
volumes: volumes:
- "./mc:/data" - ./mc/data:/data
ports: - ./mc/mods:/mods:ro
- "25565:25565" - ./mc/icon.png:/icon.png
- ./mc/whitelist.json:/whitelist.json
depends_on:
- lazytainer
network_mode: service:lazytainer
labels:
- "lazytainer.group=minecraft"
environment: environment:
EULA: "TRUE" EULA: "TRUE"
TYPE: FORGE TYPE: FORGE
VERSION: "1.20.1" VERSION: "1.20.1"
FORGE_VERSION: "47.2.32" FORGE_VERSION: "47.2.32"
ENABLE_AUTOPAUSE: "TRUE" INIT_MEMORY: 128M
INIT_MEMORY: "256M" MAX_MEMORY: 25G
MAX_MEMORY: "25G"
TZ: "Europe/Berne" TZ: "Europe/Berne"
ICON: "/icon.png"
SNOOPER_ENABLED: "FALSE"
#SEED: ""
OVERRIDE_SERVER_PROPERTIES: "TRUE" OVERRIDE_SERVER_PROPERTIES: "TRUE"
MAX_TICK_TIME: "-1" MAX_TICK_TIME: "-1"
DIFFICULTY: "normal" DIFFICULTY: "normal"
MODE: "creative" MODE: "survival" # survival, creative, adventure, spectator
MOTD: "Welcome Home" MOTD: "Bachelor's Minecraft Server"
ENABLE_WHITELIST: "TRUE"
# More aggressive settings for demo purposes WHITELIST_FILE: "/whitelist.json"
AUTOPAUSE_TIMEOUT_INIT: "30" OVERRIDE_WHITELIST: "TRUE"
AUTOPAUSE_TIMEOUT_EST: "10"
lazytainer: lazytainer:
image: ghcr.io/vmorganp/lazytainer:master image: ghcr.io/vmorganp/lazytainer:master
@ -94,35 +102,8 @@ services:
- lazytainer.group.minecraft.sleepMethod=stop - lazytainer.group.minecraft.sleepMethod=stop
- lazytainer.group.minecraft.ports=25565 - lazytainer.group.minecraft.ports=25565
- lazytainer.group.minecraft.minPacketThreshold=2 # Start after two incomming packets - lazytainer.group.minecraft.minPacketThreshold=2 # Start after two incomming packets
- lazytainer.group.minecraft.inactiveTimeout=60 # 10 minutes, to allow the server to bootstrap. You can probably make this lower later if you want. - lazytainer.group.minecraft.inactiveTimeout=300
restart: unless-stopped restart: unless-stopped
network_mode: bridge network_mode: bridge
minecraft:
image: 'itzg/minecraft-server'
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- "./mc:/data"
- "./mods:/mods:ro"
depends_on:
- lazytainer
network_mode: service:lazytainer
environment:
EULA: "TRUE"
TYPE: "FORGE"
TZ: "Europe/Zurich"
MAX_TICK_TIME: "-1"
INIT_MEMORY: 128M
MAX_MEMORY: 20G
#OVERRIDE_SERVER_PROPERTIES: "TRUE"
#ENABLE_AUTOPAUSE: "TRUE"
#AUTOPAUSE_TIMEOUT_INIT: "30"
#AUTOPAUSE_TIMEOUT_EST: "10"
DIFFICULTY: "easy"

BIN
mc/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
mc/mods/Powah-5.0.5.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
mc/mods/matc-1.6.0.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

26
mc/whitelist.json Normal file
View File

@ -0,0 +1,26 @@
[
{
"uuid": "c8491b89-6bd9-48b9-9fcc-8c78d8025984",
"name": "Klagarge"
},
{
"uuid": "d4945f1b-90de-4296-8f83-c4c7088d654a",
"name": "Robibobo1"
},
{
"uuid": "a62e3fc2-24bb-456d-a733-21c2415f4ceb",
"name": "Terrazed"
},
{
"uuid": "57b19806-04dc-4faf-8e0f-547ef953df0d",
"name": "LordBaryhobal"
},
{
"uuid": "76281784-b877-4969-8eca-a35e428e8cea",
"name": "Ranium21"
},
{
"uuid": "3e828bde-20b5-4956-84d4-6b87c1132298",
"name": "Ranium"
}
]