Skip to content

Simple docker-compose setup for Minecraft All The Mods

Notifications You must be signed in to change notification settings

scorewinner/atm-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

All The Mods docker

My docker-compose setup for Minecraft All The Mods

All The Mods 9:
https://github.com/AllTheMods/ATM-9

itzg docker Minecraft server:
https://github.com/itzg/docker-minecraft-server

Here is an example for the Docker compose:

version: "3"

services:
  minecraft:
    container_name: minecraftserver
    image: ${IMAGE:-itzg/minecraft-server}
    environment:
      EULA: "TRUE"
      TYPE: FORGE
      VERSION: "1.20.1"
      FORGE_INSTALLER: "forge-1.20.1-47.2.16-installer.jar"
      OVERRIDE_SERVER_PROPERTIES: "TRUE"
      JVM_XX_OPTS: -Xms12G -Xmx16G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1
      MAX_MEMORY: 16G
      MAX_PLAYERS: 69
      MOTD: "Minecraft ATM 9"
      DIFFICULTY: hard
      SPAWN_PROTECTION: 0
      ENFORCE_WHITELIST: "true"
      WHITELIST: player,name
      OPS: player,name
    ports:
      - 25565:25565
    volumes:
      - PATH-TO-LOCAL-DIRECTORY:/data
    ulimits:
      nofile:
        soft: "65536"
        hard: "65536"
    restart: unless-stopped  

NOTE

  • Set the volume to the correct directory where your server files will be placed
  • Download the Server Files from Curseforge and move all the files inside to your server directory
  • Get the Forge installer filename and add it to the FORGE_INSTALLER variable
  • set the whitelist and op to your preferences

After that, start the docker container

Updating the Server

Check the Updating.md

About

Simple docker-compose setup for Minecraft All The Mods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published