version: '3' # docker-compose up -d services: minecraft-server: ports: - "10701:25565" environment: EULA: "true" VERSION: "1.7" # on Type Forge, by default the container will run the RECOMMENDED version of Forge server TYPE: FORGE # ...but you can also choose to run a specific version with: FORGEVERSION: TODO 31.2.36 # By default the server configuration will be created and set based on the following environment variables, # but only the first time the server is started. # If the server.properties file already exists, the values in them will not be changed. # If you would like to override the server configuration each time the container starts up, # you can set the OVERRIDE_SERVER_PROPERTIES environment variable like: OVERRIDE_SERVER_PROPERTIES: "true" SERVER_NAME: MC-1.07 SERVER_PORT: 25565 DIFFICULTY: 0 #WHITELIST: user1,user2 OPS: Reaver1202,SuminoSempai #ICON: http://..../some/image.png # RCRON #ENABLE_RCON: "true" #RCON_PASSWORD: testing #RCON_PORT: 25575 # By default the query port will be 25565 (UDP) #ENABLE_QUERY: "true" MAX_PLAYERS: 5 # maximum possible size in blocks, expressed as a radius, that the world border can obtain #MAX_WORLD_SIZE: 10000 ALLOW_NETHER: "true" ANNOUNCE_PLAYER_ACHIEVEMENTS: "true" ENABLE_COMMAND_BLOCK: "true" # Force players to join in the default game mode. # "false" - Players will join in the gamemode they left in. # "true" - Players will always join in the default gamemode. FORCE_GAMEMODE: "false" # Defines whether structures (such as villages) will be generated. # "false" - Structures will not be generated in new chunks. # "true" - Structures will be generated in new chunks. GENERATE_STRUCTURES: "true" # If set to "true", players will be set to spectator mode if they die. HARDCORE: "false" # If set to "false", the server will not send data to snoop.minecraft.net server. SNOOPER_ENABLED: "false" MAX_BUILD_HEIGHT: 256 # The maximum number of milliseconds a single tick may take before the server watchdog stops the server with the message, # A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown. # Once this criteria is met, it calls System.exit(1). Setting this to -1 will disable watchdog entirely MAX_TICK_TIME: 60000 # Determines if animals will be able to spawn. SPAWN_ANIMALS: "true" # Determines if monsters will be spawned. SPAWN_MONSTERS: "true" # Determines if villagers will be spawned. SPAWN_NPCS: "true" # Sets the area that non-ops can not edit (0 to disable) SPAWN_PROTECTION: 0 # Sets the amount of world data the server sends the client, measured in chunks # in each direction of the player (radius, not diameter). It determines the server-side viewing distance. VIEW_DISTANCE: 10 #SEED: 2101715061381480750 #SEED: 1202512025120251202 SEED: TODO-7534676290343315407 # Instant Village To Call Home #SEED: -3619351824246593494 # Ocean Temple # By default, Minecraft servers are configured to run in Survival mode. # creative, survival, adventure, spectator MODE: survival # message of the day, shown below each server entry in the UI MOTD: Have a nice day! Tobi # By default, servers are created with player-vs-player (PVP) mode enabled. PVP: "false" # DEFAULT, FLAT, LARGEBIOMES, AMPLIFIED, CUSTOMIZED, BUFFET LEVEL_TYPE: DEFAULT #LEVEL_TYPE: biomesoplenty #### MODS # Like the WORLD option above, you can specify the URL of a "mod pack" to download and install into mods for Forge or plugins # for Bukkit/Spigot. To use this option pass the environment variable MODPACK, such as the example below. # NOTE: The referenced URL must be a zip file with one or more jar files at the top level of the zip archive. Make sure the # jars are compatible with the particular TYPE of server you are running. #MODPACK: http://www.example.com/mods/modpack.zip # When the option above is specified (MODPACK) you can also instruct script to delete old mods/plugins prior to installing # new ones. This behaviour is desirable in case you want to upgrade mods/plugins from downloaded zip file. #REMOVE_OLD_MODS: true # You may also download individual mods using the MODS environment variable and supplying the URL to the jar files. # Multiple mods/plugins should be comma separated. #MODS: https://www.example.com/mods/mod1.jar,https://www.example.com/mods/mod2.jar # WARNING: All content of the mods or plugins directory will be deleted before unpacking new content from the MODPACK or MODS. # Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed. ALLOW_FLIGHT: "true" # Memory Limit MEMORY: 8G INIT_MEMORY: 4G MAX_MEMORY: 12G # JVM Options # General JVM options can be passed to the Minecraft Server invocation by passing a JVM_OPTS environment variable. # Options like -X that need to proceed general JVM options can be passed via a JVM_XX_OPTS environment variable. # For some cases, if e.g. after removing mods, it could be necessary to startup minecraft with an additional # -D parameter like -Dfml.queryResult=confirm. To address this you can use the environment variable JVM_DD_OPTS, # which builds the params from a given list of values separated by space, but without the -D prefix. To make things # running under systems (e.g. Plesk), which doesn't allow = inside values, a : (colon) could be used instead. # The upper example would look like this: JVM_DD_OPTS=fml.queryResult:confirm, and will be converted to -Dfml.queryResult=confirm. image: itzg/minecraft-server:latest volumes: - "/home/tobi/docker-minecraft_07/mc-1.07:/data" - "/home/tobi/docker-minecraft_07/mods:/mods" container_name: mc107 tty: true stdin_open: true