Skip to content

Commit 4b3c1cc

Browse files
committed
README update
1 parent f8b3500 commit 4b3c1cc

File tree

2 files changed

+60
-4
lines changed

2 files changed

+60
-4
lines changed

README.md

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
[tz_wikipedia]:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
55
[eula]:https://account.mojang.com/documents/minecraft_eula
66

7-
# [Docker Container for Minecraft][hub]
7+
# [Docker Container for JAVA & PE Minecraft][hub]
88

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]).
1010

1111
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]
1212

@@ -322,6 +322,33 @@ To use a pre-downloaded and pre-compiled SPIGOT version, place it in the attache
322322

323323
To be taken into account the container must be restarted.
324324

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+
325352
## All Server default configuation
326353

327354
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
371398
|view-distance|10|
372399
|white-list|false|
373400

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+
```
374429

375430
## 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

service/minecraft/process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ ! -z $FTB_SERVER_START ]; then
99
exec /sbin/setuser docker $FTB_SERVER_START
1010
else
1111
if [ ! -z $PM_SERVER_START ]; then
12-
exec /sbin/setuser docker $PM_SERVER_START
12+
exec /sbin/setuser docker $PM_SERVER_START --no-wizard
1313
else
1414
exec /sbin/setuser docker java $JVM_XX_OPTS $JVM_OPTS -jar $SERVER nogui
1515
fi

0 commit comments

Comments
 (0)