|
4 | 4 | [tz_wikipedia]:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
5 | 5 | [eula]:https://account.mojang.com/documents/minecraft_eula
|
6 | 6 |
|
7 |
| -# [Docker Container for Minecraft][hub] |
| 7 | +# [Docker Container for JAVA & PE Minecraft][hub] |
8 | 8 |
|
9 |
| -This is a Docker image based on osixia/light-baseimage for running a VANILLA, FORGE, FTB or SPIGOT Minecraft server on Java SE Runtime Environment 8u181 (it is inspired by the awesome work of : [itzg/minecraft-server][itzg]). |
| 9 | +This is a Docker image based on osixia/light-baseimage for running a VANILLA, FORGE, FTB, SPIGOT or POCKETMINE Minecraft server on Java SE Runtime Environment 8u181 or PHP 7.2 (it is inspired by the awesome work of : [itzg/minecraft-server][itzg]). |
10 | 10 |
|
11 | 11 | Minecraft is a sandbox video game created and designed by Swedish game designer Markus "Notch" Persson, and later fully developed and published by Mojang. The creative and building aspects of Minecraft allow players to build with a variety of different cubes in a 3D procedurally generated world. Other activities in the game include exploration, resource gathering, crafting, and combat. [Wikipedia][Minecraft_wikipedia]
|
12 | 12 |
|
@@ -322,6 +322,33 @@ To use a pre-downloaded and pre-compiled SPIGOT version, place it in the attache
|
322 | 322 |
|
323 | 323 | To be taken into account the container must be restarted.
|
324 | 324 |
|
| 325 | +## How to deploy a POCKETMINE server |
| 326 | + |
| 327 | +To download and install the latest version of POCKETMINE server : |
| 328 | +``` |
| 329 | + $ docker run -it --name=minecraft \ |
| 330 | + -e EULA=TRUE \ |
| 331 | + -e TYPE=POCKETMINE \ |
| 332 | + -p 19132:25565/udp \ |
| 333 | + logicwar/minecraft |
| 334 | +``` |
| 335 | + |
| 336 | +To use a persistant 'data' directory on you host filesystem (make sure to use a User and Group ID which have proper accesses to the host directory) : |
| 337 | +``` |
| 338 | + $ docker run -it --name=minecraft \ |
| 339 | + -v <path for data files>:/opt/minecraft/data:rw \ |
| 340 | + -e DGID=<gid> \ |
| 341 | + -e DUID=<uid> \ |
| 342 | + -e EULA=TRUE \ |
| 343 | + -e TYPE=POCKETMINE \ |
| 344 | + -p 19132:25565/udp \ |
| 345 | + logicwar/minecraft |
| 346 | +``` |
| 347 | +###Installing plugins |
| 348 | +* The **plugins** must copied in the 'plugins' folder of the /opt/minecraft/data/ mount. |
| 349 | + |
| 350 | +To be taken into account the container must be restarted. |
| 351 | + |
325 | 352 | ## All Server default configuation
|
326 | 353 |
|
327 | 354 | The server intitial setup is made using the following default values and can be overriden by editing the `server.properities` file when the service is stopped or for some properties at server creation :
|
@@ -371,6 +398,35 @@ The server intitial setup is made using the following default values and can be
|
371 | 398 | |view-distance|10|
|
372 | 399 | |white-list|false|
|
373 | 400 |
|
| 401 | +## Sample of a simple docker-compose.yml |
| 402 | +``` |
| 403 | +version: "3" |
| 404 | +
|
| 405 | +services: |
| 406 | + minecraft-server: |
| 407 | + image: logicwar/minecraft:latest |
| 408 | + volumes: |
| 409 | + - "/ContainerPersistentMounts/Minecraft/PocketMine/Data1:/opt/minecraft/data:rw" |
| 410 | + ports: |
| 411 | + - "19132:25565/udp" |
| 412 | + - "19132:25575" |
| 413 | + environment: |
| 414 | + EULA: "TRUE" |
| 415 | + DUID: "1004" |
| 416 | + DGID: "1003" |
| 417 | + ENABLE_RCON: "FALSE" |
| 418 | + MOTD: "Home Server - PocketMine - 1" |
| 419 | + TYPE: "POCKETMINE" |
| 420 | + TZ: "Europe/Zurich" |
| 421 | + GAMEMODE: "0" |
| 422 | + DIFFICULTY: "1" |
| 423 | + container_name: "minecraft-server-pm-1" |
| 424 | + hostname: "minecraft-server-pm-1" |
| 425 | + network_mode: "bridge" |
| 426 | + tty: true |
| 427 | + stdin_open: true |
| 428 | +``` |
374 | 429 |
|
375 | 430 | ## Versions
|
376 |
| -+ **V0.1** Initial Release |
| 431 | ++ **V0.1** Initial Release |
| 432 | ++ **V0.2** Quick fix to load 13.1 VANILLA version and add POCKETMINE Support |
0 commit comments