docker-compose.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. version: '3'
  2. # docker-compose up -d
  3. services:
  4. minecraft-server:
  5. ports:
  6. - "17101:25565"
  7. environment:
  8. EULA: "true"
  9. VERSION: "1.7.10"
  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: 10.13.4.1558
  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. OVERRIDE_SERVER_PROPERTIES: "false"
  20. SERVER_NAME: MC-1.7.10
  21. SERVER_PORT: 25565
  22. DIFFICULTY: 0
  23. #WHITELIST: user1,user2
  24. OPS: Reaver1202,SuminoSempai,SYRN
  25. #ICON: http://..../some/image.png
  26. LEVEL: "Tobi&EweWonderworld"
  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: 8185281071607683059
  68. # By default, Minecraft servers are configured to run in Survival mode.
  69. # creative, survival, adventure, spectator
  70. MODE: survival
  71. # message of the day, shown below each server entry in the UI
  72. MOTD: Have a nice day! Tobi
  73. # By default, servers are created with player-vs-player (PVP) mode enabled.
  74. PVP: "false"
  75. # DEFAULT, FLAT, LARGEBIOMES, AMPLIFIED, CUSTOMIZED, BUFFET
  76. LEVEL_TYPE: DEFAULT
  77. #LEVEL_TYPE: biomesoplenty
  78. #### MODS
  79. # Like the WORLD option above, you can specify the URL of a "mod pack" to download and install into mods for Forge or plugins
  80. # for Bukkit/Spigot. To use this option pass the environment variable MODPACK, such as the example below.
  81. # 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
  82. # jars are compatible with the particular TYPE of server you are running.
  83. #MODPACK: http://www.example.com/mods/modpack.zip
  84. # When the option above is specified (MODPACK) you can also instruct script to delete old mods/plugins prior to installing
  85. # new ones. This behaviour is desirable in case you want to upgrade mods/plugins from downloaded zip file.
  86. #REMOVE_OLD_MODS: true
  87. # You may also download individual mods using the MODS environment variable and supplying the URL to the jar files.
  88. # Multiple mods/plugins should be comma separated.
  89. #MODS: https://www.example.com/mods/mod1.jar,https://www.example.com/mods/mod2.jar
  90. # WARNING: All content of the mods or plugins directory will be deleted before unpacking new content from the MODPACK or MODS.
  91. # Allows users to use flight on your server while in Survival mode, if they have a mod that provides flight installed.
  92. ALLOW_FLIGHT: "true"
  93. # Memory Limit
  94. MEMORY: 4G
  95. INIT_MEMORY: 4G
  96. MAX_MEMORY: 4G
  97. # JVM Options
  98. # General JVM options can be passed to the Minecraft Server invocation by passing a JVM_OPTS environment variable.
  99. # Options like -X that need to proceed general JVM options can be passed via a JVM_XX_OPTS environment variable.
  100. # For some cases, if e.g. after removing mods, it could be necessary to startup minecraft with an additional
  101. # -D parameter like -Dfml.queryResult=confirm. To address this you can use the environment variable JVM_DD_OPTS,
  102. # which builds the params from a given list of values separated by space, but without the -D prefix. To make things
  103. # running under systems (e.g. Plesk), which doesn't allow = inside values, a : (colon) could be used instead.
  104. # The upper example would look like this: JVM_DD_OPTS=fml.queryResult:confirm, and will be converted to -Dfml.queryResult=confirm.
  105. image: itzg/minecraft-server:latest
  106. volumes:
  107. - "/home/tobi/docker-minecraft_07-10/mc-1.7.10:/data"
  108. - "/home/tobi/docker-minecraft_07-10/mods:/mods"
  109. container_name: mc10710
  110. tty: true
  111. stdin_open: true