Sign inSign up

chota5511/quans_mc_server

By chota5511

•Updated over 1 year ago

A Minecraft Server for Docker container based on Amazon Corretto and PaperMC

Image
0

504

chota5511/quans_mc_server repository overview

⁠Quan's Minecraft Server

⁠Introduction

A very lightweight Minecraft Server for Docker container based on Amazon Corretto⁠ and PaperMC⁠

⁠Table of content

⁠Deployment

⁠Using Docker CLI commands
    $ docker run \
            --name mc_test \
            -p 25565:25565 \
            -p 25575:25575 \
            -e min_mem=6G \
            -e max_mem=6G \
            -e motd="Quan Nguyen's Minecraft Server"\
            -e difficulty=normal \
            -e rcon_password=<your password> \
            -v /your/path/to/data/folder/:/mcfile/ \
            -d chota5511/quans_mc_server
  1. Create a docker-compose.yml file
    version: '3'
    services:
        quans_minecraft_server:
        image: chota5511/quans_mc_server:latest
        container_name: quans_minecraft_server
        ports:
            - 25565:25565
            - 25575:25575
        environment:
            - min_mem=6G
            - max_mem=6G
            - motd="Quan Nguyen's Minecraft Server"
            - difficulty=normal
            - rcon_password=<your password>
        volumes:
            - /your/path/to/data/folder/:/mcfile/
        restart: unless-stopped
  1. Deploy docker-compose

From docker-compose.yml location folder run command bellow

       $ docker compose up

⁠Docker ENV

ENV nameDefault valueDescription
min_mem2GMinimum memory allocated for JVM
max_mem2GMaximum memory will be allocated for JVM

⁠Maping table for server.properties and default values

server.propertiesDefault valueDocker ENV
enable-jmx-monitoringfalseenable_jmx_monitoring
rcon.port25575rcon_port
level-seedlevel_seed
gamemodesurvivalgamemode
enable-command-blockfalseenable_command_block
enable-queryfalseenable_query
generator-settings{}generator_settings
level-nameworldlevel_name
motdA Minecraft Servermotd
query.port25565query_port
pvptruepvp
generate-structurestruegenerate_structures
max-chained-neighbor-updates1000000max_chained_neighbor_updates
difficultyeasydifficulty
network-compression-threshold256network_compression_threshold
require-resource-packfalserequire_resource_pack
max-tick-time60000max_tick_time
use-native-transporttrueuse_native_transport
max-players20max_players
online-modetrueonline_mode
enable-statustrueenable_status
allow-flightfalseallow_flight
broadcast-rcon-to-opstruebroadcast_rcon_to_ops
view-distance10view_distance
server-ipserver_ip
resource-pack-promptresource_pack_prompt
allow-nethertrueallow_nether
server-port25565server_port
enable-rconfalseenable_rcon
sync-chunk-writestruesync_chunk_writes
op-permission-level4op_permission_level
prevent-proxy-connectionsfalseprevent_proxy_connections
hide-online-playersfalsehide_online_players
resource-packresource_pack
entity-broadcast-range-percentage100entity_broadcast_range_percentage
simulation-distance10simulation_distance
rcon.passwordrcon_password
player-idle-timeout0player_idle_timeout
force-gamemodefalseforce_gamemode
rate-limit0rate_limit
hardcorefalsehardcore
white-listfalsewhite_list
broadcast-console-to-opstruebroadcast_console_to_ops
spawn-npcstruespawn_npcs
spawn-animalstruespawn_animals
function-permission-level2function_permission_level
level-typeminecraft:normallevel_type
text-filtering-configtext_filtering_config
spawn-monsterstruespawn_monsters
enforce-whitelistfalseenforce_whitelist
resource-pack-sha1resource_pack_sha1
spawn-protection16spawn_protection
max-world-size29999984max_world_size

⁠How to use

For administrators, download mcron⁠ (Windows) or mcron⁠ (Linux). Provide it with your instance ip (localhost loopback ip - 172.0.0.1), port (default - 25575) and <your password>.

For players, access to the MC server with your public ip (local access via localhost loopback ip - 172.0.0.1) throught configurated port (default - 25565)

All config must update through Docker ENV otherwise it will not be saved and be reset back to ENV configuration after restart

⁠Authors

See also the list of contributors⁠ who participated in this project.

Tag summary

Content type

Image

Digest

sha256:32403ff96…

Size

206.4 MB

Last updated

over 1 year ago

docker pull chota5511/quans_mc_server