Coder Social home page Coder Social logo

rpi-minecraft-server's Introduction

rpi-minecraft-server

Minecraft Server for Docker on the Raspberry Pi.

Docker Hub: https://hub.docker.com/r/frozenfoxx/rpi-minecraft-server/

How to Build

git clone [email protected]:frozenfoxx/rpi-minecraft-server.git
cd rpi-minecraft-server
docker build .

How to Use this Image

Quickstart

The following will set up, install, and run the latest Minecraft server. This is fine for testing but not ideal for long term.

docker run -d --name=minecraft_server \
  -p 25565:25565 \
  -v /srv \
  -e EULA=true \
  -e DEFAULT_OP=[name] \
  frozenfoxx/rpi-minecraft-server

Data Container

To persist your world data, plugins, and other information you're going to want to create a data container (or otherwise mount storage). The following will quickly create one:

docker create -v /srv --name minecraft_data frozenfoxx/rpi-minecraft-server /bin/true

You can then mount this container using --volumes-from:

docker run -d --name=minecraft_server \
  -p 25565:25565 \
  --volumes-from minecraft_data \
  -e EULA=true \
  -e DEFAULT_OP=[name] \
  frozenfoxx/rpi-minecraft-server

Docker Compose

You can also adjust and deploy the server via the docker-compose.yml as such:

docker-compose up -d minecraft

Configuration

Environment Variables

This image can be configured using environment variables. The following are the most common used.

  • EULA: required by Mojang.
  • DEFAULT_OP: required when creating a new container. Any usernames specified will be added to the ops.json file.
  • JAVA_OPS: JVM options.
  • MINECRAFT_HOME: home of the Minecraft server (default: /srv)
  • MOTD: message of the day.
  • LEVEL_NAME: world to load.
  • LEVEL_SEED: world seed.
  • DIFFICULTY: difficulty of the world.
  • GAMEMODE: game type to load.
  • PVP: whether to allow Player vs Player combat.

Notes

  • Accepting the Mojang EULA is absolutely required to use this image. By setting the environment variable EULA you are signifying your agreement.

rpi-minecraft-server's People

Contributors

frozenfoxx 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.