ansible/playbooks/tasks/game/minecraft-vanilla.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

2023-06-04 19:55:03 -05:00
# vim:ft=ansible:
- name: docker deploy minecraft - vanilla
docker_container:
name: minecraft-vanilla
2023-08-06 14:21:26 -05:00
state: absent
2023-06-04 19:55:03 -05:00
image: itzg/minecraft-server:latest
restart_policy: unless-stopped
pull: yes
env:
DIFFICULTY: "normal"
ENABLE_COMMAND_BLOCK: "true"
2023-06-04 19:55:03 -05:00
EULA: "true"
MAX_PLAYERS: "8"
MODRINTH_PROJECT: "https://modrinth.com/modpack/adrenaserver"
MOTD: "Tannerite Dog Edition\\n#abolishtheatf"
OPS: "VintageSalt"
RCON_CMDS_STARTUP: |-
scoreboard objectives add Deaths deathCount
scoreboard objectives add Health health {"text":"❤","color":"red"}
RCON_CMDS_ON_CONNECT: |-
scoreboard objectives setdisplay list Deaths
scoreboard objectives setdisplay belowName Health
SNOOPER_ENABLED: "false"
SPAWN_PROTECTION: "0"
2023-06-04 19:55:03 -05:00
TYPE: "MODRINTH"
USE_AIKAR_FLAGS: "true"
VIEW_DISTANCE: "12"
2023-06-04 19:55:03 -05:00
ports:
- "26565:25565/tcp"
- "26565:25565/udp"
2023-06-04 19:55:03 -05:00
volumes:
- /data/minecraft/vanilla:/data
tags: [ docker, minecraft ]