Giter Club home page Giter Club logo

pocketmine's Introduction

Pocketmine Docker Image

Run a pocketmine server in no time. This docker file builds the latest development version of Pocketmine.

Builds will also be tagged with the build number as reported by http://www.pocketmine.net.

To run a Pocketmine server in a docker container

docker pull mecolosimo/pocketmine:latest
mkdir ~/pocketmine
docker run -d -p 22 -p 19132:19132/udp -p 9001:9001 -v /home/${USER}/pocketmine:/mnt/pocketmine --name pocketmine mecolosimo/pocketmine:latest

This mounts the local directory pocketmine into the container. This is the working directory for pocketmine. Any changes to files here are seen by pocketmine when restarted.

The server starts by default in survival mode and generates a new world.

You can connect to the hosts's IP address (or hostname) at Pocketmine's default port: 19132. Both RCON and game play listen on the same port. RCON on the TCP connection and game play on the UDP connection. Default configuration is for RCON to be off.

Supervisord's http server listens on port 9001. You can remap that to another port if you already have another http server listening on that port. This uses memmon (via superlance) to limit the memory used by pocketmine (default is 2 GB; see src/etc/supervisor/supervisor.conf).

sshd listens on port 22 and since we DON'T want to block our own sshd we let docker map it to a random port.

To verify that the Pocketmine server started you can request the container's logs:

docker logs pocketmine

ssh'ing into the container:

ssh root@localhost -p 49100
root@0f01396c5cc9:~# supervisorctl 
memmon                           RUNNING    pid 17, uptime 20:03:35
pocketmine                       RUNNING    pid 4630, uptime 7:42:10
sshd                             RUNNING    pid 18, uptime 20:03:35

Making changes to the configuration

First stop pocketmine then make changes to the server.properties file. You can also add plugins.

docker stop pocketmine
# add plugins
# edit server.properties, permissions, etc...
docker start pocketmine

pocketmine's People

Contributors

mecolosimo avatar steubens avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.