mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-15 04:54:55 +00:00
docs: Added examples of AUTO_CURSEFORGE and MEMORY info (#1920)
This commit is contained in:
@@ -615,8 +615,10 @@ docker run -d --name mc-ftb -e EULA=TRUE \
|
|||||||
|
|
||||||
To manage a CurseForge modpack automatically with upgrade support, pinned or latest version tracking, set `TYPE` to "AUTO_CURSEFORGE". The appropriate mod loader (Forge / Fabric) version will be automatically installed as declared by the modpack.
|
To manage a CurseForge modpack automatically with upgrade support, pinned or latest version tracking, set `TYPE` to "AUTO_CURSEFORGE". The appropriate mod loader (Forge / Fabric) version will be automatically installed as declared by the modpack.
|
||||||
|
|
||||||
> **NOTE:**
|
> **NOTES:**
|
||||||
> Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version).
|
> Be sure to use the appropriate [image tag for the Java version compatible with the modpack](#running-minecraft-server-on-different-java-version).
|
||||||
|
>
|
||||||
|
> Most modpacks require a good amount of memory, so it best to set `MEMORY` to at least "4G" since the default is only 1 GB.
|
||||||
|
|
||||||
Use one of the following to specify the modpack to install:
|
Use one of the following to specify the modpack to install:
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mc:
|
||||||
|
image: itzg/minecraft-server
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
environment:
|
||||||
|
EULA: "true"
|
||||||
|
TYPE: AUTO_CURSEFORGE
|
||||||
|
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/all-the-mods-8
|
||||||
|
CF_FILENAME_MATCHER: "1.0.6"
|
||||||
|
MEMORY: 4G
|
||||||
|
volumes:
|
||||||
|
- mc-data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mc-data: {}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mc:
|
||||||
|
image: itzg/minecraft-server:java8-multiarch
|
||||||
|
ports:
|
||||||
|
- "25565:25565"
|
||||||
|
environment:
|
||||||
|
EULA: "true"
|
||||||
|
TYPE: AUTO_CURSEFORGE
|
||||||
|
CF_SLUG: the-pixelmon-modpack
|
||||||
|
CF_FILENAME_MATCHER: "9.1.2"
|
||||||
|
MEMORY: 4G
|
||||||
|
volumes:
|
||||||
|
- mc-data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mc-data: {}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mc:
|
||||||
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
|
environment:
|
||||||
|
EULA: "true"
|
||||||
|
SETUP_ONLY: "TRUE"
|
||||||
|
TYPE: AUTO_CURSEFORGE
|
||||||
|
CF_SLUG: the-pixelmon-modpack
|
||||||
|
CF_FILENAME_MATCHER: "9.1.2"
|
||||||
|
# Use the image bundled one to ensure latest is being tested
|
||||||
|
CF_EXCLUDE_INCLUDE_FILE: /image/cf-exclude-include.json
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
mc-image-helper assert fileExists "/data/mods/ExplorersCompass-1.16.5-1.1.2-forge.jar"
|
||||||
|
mc-image-helper assert fileExists "/data/forge-1.16.5-36.2.34.jar"
|
||||||
Reference in New Issue
Block a user