This is a starter repository that helps you get setup with itzg/minecraft-server
containers that run FTB or CurseForge modpacks.
An example Docker Compose file has been created in valhelsia
.
-
Download and place the corresponding modpack zip file in the
modpacks
directory. See the README there for a download link. -
Go into the corresponding directory and bring up the Docker composition, such as
cd valhelsia docker-compose up -d
You can watch the logs by using
docker-compose logs -f
The example will attach the container's /data
path to the local directory data/valhelsia
. You can adjust configuration in there and restart the container to pick up those changes.
It is recommended that you put the compose file for each in its own directory named with a short name so that it will be used as the Docker compose project name and show up nicely in docker ps
listings, such as
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b7fa79011ed6 itzg/minecraft-server "/start" About a minute ago Up About a minute (health: starting) 0.0.0.0:25565->25565/tcp, 25575/tcp valhelsia_mc_1
- Duplicate and rename the
valhelsia
directory - In the copied
docker-compose.yml
- Change the "valhelsia" part of the
/data
volume attachment - Change the zip filename in
CF_SERVER_MOD
to the appropriate modpack you're adding - If running alongside others from this starter, change the host port (left part) from 25565 to something distinct, like incrementing to 25566.
- Change the "valhelsia" part of the
- Download the server modpack file and place in
modpacks
along with the others
The vanilla
configuration does not include a modpack and is provided as a baseline configuration.