GithubHelp home page GithubHelp logo

docker-minecraft-ftb's Introduction

Docker Minecraft FTB

A Docker image for running FTB Minecraft servers.

Example

docker run -itd --rm --name minecraft-ftb \
    -v "/docker_data/minecraft:/var/lib/minecraft" \
    -e "FTB_MODPACK_ID=119" \
    -e "FTB_MODPACK_VERSION_ID=11614" \
    -e "ACCEPT_MOJANG_EULA=1" \
    -p "25565:25565" \
    --stop-timeout=60 \
    ghcr.io/flobernd/minecraft-ftb

Warning

The server process does not shut down gracefully, if no TTY is present. Please pass the --tty/-t switch (Docker) or use tty: true (Docker Compose).

Warning

It is strongly recommended to set the stop-timeout / stop_grace_period to at least 60 seconds to avoid data loss when stopping the container.

Note

It is recommended to pass the --interactive/-i switch (Docker) or use stdin_open: true (Docker Compose) to be able to use the server console after attaching to the container.

Docker Compose Example

services:
  minecraft-ftb:
    image: ghcr.io/flobernd/minecraft-ftb:latest
    container_name: minecraft-ftb
    restart: unless-stopped
    tty: true
    stdin_open: true
    stop_grace_period: 1m
    environment:
      - "FTB_MODPACK_ID=119"
      - "FTB_MODPACK_VERSION_ID=11614"
      - "ACCEPT_MOJANG_EULA=1"
    volumes:
      - /docker_data/minecraft:/var/lib/minecraft:rw
    ports:
      - 25565:25565

Environment

FTB_MODPACK_ID

The FTB modpack ID (required).

Note

The modpack ID and the version ID are displayed on the right-hand side of the modpack info page. For example, the Direwolf20 1.20 modpack has the ID 119 and the latest version, as of today, is 11614.

FTB_MODPACK_VERSION_ID

The FTB modpack version ID (required).

ACCEPT_MOJANG_EULA

Set 1 to automatically agree to the Mojang EULA.

This option enables unattended installation. Otherwise, an interactive session must be used to accept the EULA after installation.

Default: 0.

License

Docker Minecraft FTB is licensed under the MIT license.

docker-minecraft-ftb's People

Contributors

flobernd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

docker-minecraft-ftb's Issues

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.