From 3544aedffef04654369d93efdad04bd25522af83 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 15 Jul 2021 00:35:32 -0500 Subject: [PATCH] Reconfigure gameservers to serve Minecraft and nothing else --- playbooks/game.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/playbooks/game.yml b/playbooks/game.yml index addbb12..e3a3545 100755 --- a/playbooks/game.yml +++ b/playbooks/game.yml @@ -23,7 +23,7 @@ - name: docker deploy starbound docker_container: name: starbound - state: started + state: absent image: didstopia/starbound-server restart_policy: unless-stopped pull: yes @@ -34,6 +34,28 @@ volumes: - /data/starbound/main:/steamcmd/starbound tags: [ docker, starbound ] + - name: docker deploy minecraft botaniapack2-survival + docker_container: + name: botaniapack2-survival + state: started + image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-openjdk11 + restart_policy: unless-stopped + pull: yes + env: + TZ: "America/Chicago" + 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" + JRE_XMX: 5G + JRE_XMS: 3G + FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-botaniapack2/latest.zip" + ports: + - "25565:25565/tcp" + - "25565:25565/udp" + volumes: + - /data/minecraft/botaniapack2-survival/backups:/minecraft/backups + - /data/minecraft/botaniapack2-survival/logs:/minecraft/logs + - /data/minecraft/botaniapack2-survival/world:/minecraft/world + - /data/minecraft/botaniapack2-survival/ops.json:/minecraft/ops.json + tags: [ docker, minecraft, botania, survival ] - name: docker deploy minecraft valhelsia3 docker_container: name: valhelsia3 @@ -76,12 +98,34 @@ volumes: - /data/css/server.cfg:/home/steam/css/cstrike/cfg/my-server.cfg tags: [ docker, css ] + - name: docker deploy minecraft botaniapack2-creative + docker_container: + name: botaniapack2-creative + state: started + image: rehashedsalt/minecraft-forge:1.16.5-36.1.13-openjdk11 + restart_policy: unless-stopped + pull: yes + env: + TZ: "America/Chicago" + 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" + JRE_XMX: 3G + JRE_XMS: 3G + FORGE_PACK_ZIP: "https://srv.9iron.club/files/packs/1.16.5-botaniapack2/latest.zip" + ports: + - "25565:25565/tcp" + - "25565:25565/udp" + volumes: + - /data/minecraft/botaniapack2-creative/backups:/minecraft/backups + - /data/minecraft/botaniapack2-creative/logs:/minecraft/logs + - /data/minecraft/botaniapack2-creative/world:/minecraft/world + - /data/minecraft/botaniapack2-creative/ops.json:/minecraft/ops.json + tags: [ docker, minecraft, botania, creative ] # https://github.com/mkrupczak3/SCP-SECRET-LAB-DOCKER # Kinda forked it and changed a few settings tho - name: docker deploy scpsl docker_container: name: scpsl - state: started + state: absent image: rehashedsalt/scpsl:latest restart_policy: unless-stopped pull: yes