1
0
Fork 0
Container w/ Minecraft & MCUpdater
Este repositório foi arquivado em 2023-06-13. Você pode visualizar arquivos e cloná-lo, mas não pode fazer push, abrir issues ou pull requests.
Ir para arquivo
Daniel Wolf 1e9d76fbfb
Build Container Image / build_amd64 (push) Successful in 57s Detalhes
Build Container Image / build_manifest (push) Successful in 7s Detalhes
Build Container Image / publish_amd64 (push) Successful in 42s Detalhes
Build Container Image / publish_manifest (push) Successful in 13s Detalhes
this image does not use a builder stage
2023-05-09 16:10:43 -04:00
.gitea/workflows this image does not use a builder stage 2023-05-09 16:10:43 -04:00
override fix perms on .screenrc if needed 2022-03-07 15:09:03 -05:00
.dockerignore migrate from drone to gitea-runner 2023-05-09 16:08:19 -04:00
.gitignore update gitignore 2022-03-02 16:58:19 -05:00
Dockerfile use public base image again 2022-05-14 11:46:36 -04:00
LICENSE.md migrate from drone to gitea-runner 2023-05-09 16:08:19 -04:00
README.md migrate from drone to gitea-runner 2023-05-09 16:08:19 -04:00

README.md

Git | Docker | unRAID

Minecraft Server

This docker image contains a Minecraft server to self-host your own Java Edition server and optionally MCUpdater modpack.

To secure this service, we suggest a separate reverse proxy server, such as an NGINX container.

Please note, you will still need to agree to the EULA the first time you start up the server by changing eula=false to eula=true in the /mnt/config/data/server/eula.txt file.

This container does not currently include its own web server. To expose your modpack to the public, you will need to host the modpack directory on a web server.

You can spin up a quick temporary test container like this:

docker run --rm -p 25565:25565 -it nephatrine/minecraft:latest /bin/bash

Configuration Variables

You can set these parameters using the syntax -e "VARNAME=VALUE" on your docker run command. Some of these may only be used during initial configuration and further changes may need to be made in the generated configuration files.

  • FABRIC_VERSION: Fabric Loader Version ("")
  • MINECRAFT_VERSION: Minecraft Version ("")
  • JAVA_OPTS: Java Commandline Arguments ("")
  • MODPACK_NAME: Modpack Name (custom)
  • MODPACK_PUBLIC: Modpack Download URL (https://[SERVER_PUBLIC])
  • PUID: Mount Owner UID (1000)
  • PGID: Mount Owner GID (100)
  • SERVER_NAME: Server Name (custom)
  • SERVER_PUBLIC: Server IP/FQDN ("")
  • TZ: System Timezone (America/New_York)

Persistent Mounts

You can provide a persistent mountpoint using the -v /host/path:/container/path syntax. These mountpoints are intended to house important configuration files, logs, and application state (e.g. databases) so they are not lost on image update.

  • /mnt/config: Persistent Data.

Do not share /mnt/config volumes between multiple containers as they may interfere with the operation of one another.

You can perform some basic configuration of the container using the files and directories listed below.

  • /mnt/config/data/server/eula.txt: Accept Minecraft EULA. [*]
  • /mnt/config/data/server/server.properties: Set Minecraft Properties. [*]
  • /mnt/config/etc/crontabs/<user>: User Crontabs. [*]
  • /mnt/config/etc/logrotate.conf: Logrotate Global Configuration.
  • /mnt/config/etc/logrotate.d/: Logrotate Additional Configuration.
  • /mnt/config/www/minecraft/modpack/client/*: Client-Side Optional Mods. [*]
  • /mnt/config/www/minecraft/modpack/config/*: Mod Configuration Files. [*]
  • /mnt/config/www/minecraft/modpack/extract/*: Modpack Zipfiles. [*]
  • /mnt/config/www/minecraft/modpack/mods/*: Minecraft Mods. [*]
  • /mnt/config/www/minecraft/modpack/optional/*: Optional Mods. [*]
  • /mnt/config/www/minecraft/modpack/scripts/*: Minecraft Tweaking Scripts. [*]
  • /mnt/config/www/minecraft/modpack/server/*: Server-Side Optional Mods. [*]
  • /mnt/config/www/minecraft/modpack.xsl: MCUpdater Modpack Theming. [*]

[*] Changes to some configuration files may require service restart to take immediate effect.

Network Services

This container runs network services that are intended to be exposed outside the container. You can map these to host ports using the -p HOST:CONTAINER or -p HOST:CONTAINER/PROTOCOL syntax.

  • 25565/tcp+udp: Minecraft Server. This is the game server.