docker-compose.yml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. version: '3'
  2. # docker-compose up -d
  3. services:
  4. minecraft-server:
  5. ports:
  6. - "11522:25565"
  7. environment:
  8. EULA: "true"
  9. VERSION: "1.15.2"
  10. # on Type Forge, by default the container will run the RECOMMENDED version of Forge server
  11. TYPE: FORGE
  12. # ...but you can also choose to run a specific version with:
  13. FORGEVERSION: 31.2.36
  14. # By default the server configuration will be created and set based on the following environment variables,
  15. # but only the first time the server is started.
  16. # If the server.properties file already exists, the values in them will not be changed.
  17. # If you would like to override the server configuration each time the container starts up,
  18. # you can set the OVERRIDE_SERVER_PROPERTIES environment variable like:
  19. # false, to set level_type to biomesoplenty
  20. OVERRIDE_SERVER_PROPERTIES: "false"
  21. SERVER_NAME: MC-1.15.2
  22. SERVER_PORT: 25565
  23. DIFFICULTY: 0
  24. #WHITELIST: user1,user2
  25. OPS: Reaver1202,SuminoSempai,SYRN
  26. #ICON: http://..../some/image.png
  27. # RCRON
  28. #ENABLE_RCON: "true"
  29. #RCON_PASSWORD: testing
  30. #RCON_PORT: 25575
  31. # By default the query port will be 25565 (UDP)
  32. #ENABLE_QUERY: "true"
  33. MAX_PLAYERS: 5
  34. # maximum possible size in blocks, expressed as a radius, that the world border can obtain
  35. #MAX_WORLD_SIZE: 10000
  36. ALLOW_NETHER: "true"
  37. ANNOUNCE_PLAYER_ACHIEVEMENTS: "true"
  38. ENABLE_COMMAND_BLOCK: "true"
  39. # Force players to join in the default game mode.
  40. # "false" - Players will join in the gamemode they left in.
  41. # "true" - Players will always join in the default gamemode.
  42. FORCE_GAMEMODE: "false"
  43. # Defines whether structures (such as villages) will be generated.
  44. # "false" - Structures will not be generated in new chunks.
  45. # "true" - Structures will be generated in new chunks.
  46. GENERATE_STRUCTURES: "true"
  47. # If set to "true", players will be set to spectator mode if they die.
  48. HARDCORE: "false"
  49. # If set to "false", the server will not send data to snoop.minecraft.net server.
  50. SNOOPER_ENABLED: "false"
  51. MAX_BUILD_HEIGHT: 256
  52. # The maximum number of milliseconds a single tick may take before the server watchdog stops the server with the message,
  53. # A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown.
  54. # Once this criteria is met, it calls System.exit(1). Setting this to -1 will disable watchdog entirely
  55. MAX_TICK_TIME: 60000
  56. # Determines if animals will be able to spawn.
  57. SPAWN_ANIMALS: "true"
  58. # Determines if monsters will be spawned.
  59. SPAWN_MONSTERS: "true"
  60. # Determines if villagers will be spawned.
  61. SPAWN_NPCS: "true"
  62. # Sets the area that non-ops can not edit (0 to disable)
  63. SPAWN_PROTECTION: 0
  64. # Sets the amount of world data the server sends the client, measured in chunks
  65. # in each direction of the player (radius, not diameter). It determines the server-side viewing distance.
  66. VIEW_DISTANCE: 10
  67. #SEED: 2101715061381480750
  68. #SEED: 1202512025120251202
  69. SEED: -7534676290343315407 # Instant Village To Call Home
  70. #SEED: -3619351824246593494 # Ocean Temple
  71. # By default, Minecraft servers are configured to run in Survival mode.
  72. # creative, survival, adventure, spectator
  73. MODE: survival
  74. # message of the day, shown below each server entry in the UI
  75. MOTD: Have a nice day! Tobi
  76. # By default, servers are created with player-vs-player (PVP) mode enabled.
  77. PVP: "false"
  78. # DEFAULT, FLAT, LARGEBIOMES, AMPLIFIED, CUSTOMIZED, BUFFET
  79. #LEVEL_TYPE: DEFAULT
  80. LEVEL_TYPE: biomesoplenty
  81. #### MODS
  82. # Like the WORLD option above, you can specify the URL of a "mod pack" to download and install into mods for Forge or plugins
  83. # for Bukkit/Spigot. To use this option pass the environment variable MODPACK, such as the example below.
  84. # 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
  85. # jars are compatible with the particular TYPE of server you are running.
  86. #MODPACK: http://www.example.com/mods/modpack.zip
  87. # When the option above is specified (MODPACK) you can also instruct script to delete old mods/plugins prior to installing
  88. # new ones. This behaviour is desirable in case you want to upgrade mods/plugins from downloaded zip file.
  89. #REMOVE_OLD_MODS: true
  90. # You may also download individual mods using the MODS environment variable and supplying the URL to the jar files.
  91. # Multiple mods/plugins should be comma separated.
  92. #MODS: https://www.example.com/mods/mod1.jar,https://www.example.com/mods/mod2.jar
  93. # WARNING: All content of the mods or plugins directory will be deleted before unpacking new content from the MODPACK or MODS.
  94. # Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed.
  95. ALLOW_FLIGHT: "true"
  96. # Memory Limit
  97. MEMORY: 8G
  98. INIT_MEMORY: 4G
  99. MAX_MEMORY: 12G
  100. # JVM Options
  101. # General JVM options can be passed to the Minecraft Server invocation by passing a JVM_OPTS environment variable.
  102. # Options like -X that need to proceed general JVM options can be passed via a JVM_XX_OPTS environment variable.
  103. # For some cases, if e.g. after removing mods, it could be necessary to startup minecraft with an additional
  104. # -D parameter like -Dfml.queryResult=confirm. To address this you can use the environment variable JVM_DD_OPTS,
  105. # which builds the params from a given list of values separated by space, but without the -D prefix. To make things
  106. # running under systems (e.g. Plesk), which doesn't allow = inside values, a : (colon) could be used instead.
  107. # The upper example would look like this: JVM_DD_OPTS=fml.queryResult:confirm, and will be converted to -Dfml.queryResult=confirm.
  108. image: itzg/minecraft-server:latest
  109. volumes:
  110. - "/home/tobi/docker-minecraft_15-2/mc-1.15.2:/data"
  111. - "/home/tobi/docker-minecraft_15-2/mods:/mods"
  112. container_name: mc1152
  113. tty: true
  114. stdin_open: true