ansible/roles/docker-minecraft/defaults/main.yml

36 lines
1.4 KiB
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
# Overall app settings
minecraft_name: generic
#minecraft_pack_zip: "https://example.com/path/to/pack.zip"
# Container settings
minecraft_uid: 1520
minecraft_gid: 1520
minecraft_state: started
# See the tags for this image for more versions
minecraft_image: rehashedsalt/minecraft-forge:1.16.5-master
minecraft_restart_policy: unless-stopped
minecraft_timezone: "America/Chicago"
# Container network settings
minecraft_external_port: "25565"
minecraft_data_prefix: "/data/minecraft/{{ minecraft_name }}"
# Java settings
minecraft_jvm_args: "-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1"
minecraft_jvm_extra_args: ""
minecraft_xmx: "8G"
minecraft_xms: "4G"
# server.properties
minecraft_server_properties:
allow-flight: true
difficulty: hard
gamemode: survival
level-name: world
level-type: default
max-players: 20
motd: A Minecraft Server
server-port: 25565
spawn-protection: 0
view-distance: 10