2023-06-04 19:55:03 -05:00
|
|
|
# vim:ft=ansible:
|
|
|
|
- name: docker deploy minecraft - vanilla
|
|
|
|
docker_container:
|
|
|
|
name: minecraft-vanilla
|
|
|
|
state: started
|
|
|
|
image: itzg/minecraft-server:latest
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
pull: yes
|
|
|
|
env:
|
2023-06-04 20:13:39 -05:00
|
|
|
DIFFICULTY: "normal"
|
|
|
|
ENABLE_COMMAND_BLOCK: "true"
|
2023-06-04 19:55:03 -05:00
|
|
|
EULA: "true"
|
2023-06-04 20:13:39 -05:00
|
|
|
MAX_PLAYERS: "8"
|
|
|
|
MODRINTH_PROJECT: "https://modrinth.com/modpack/adrenaserver"
|
|
|
|
MOTD: "Tannerite Dog Edition\\n#abolishtheatf"
|
|
|
|
OPS: "VintageSalt"
|
2023-06-18 09:19:26 -05:00
|
|
|
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
|
2023-06-04 20:13:39 -05:00
|
|
|
SNOOPER_ENABLED: "false"
|
|
|
|
SPAWN_PROTECTION: "0"
|
2023-06-04 19:55:03 -05:00
|
|
|
TYPE: "MODRINTH"
|
2023-06-04 20:13:39 -05:00
|
|
|
USE_AIKAR_FLAGS: "true"
|
|
|
|
VIEW_DISTANCE: "12"
|
2023-06-04 19:55:03 -05:00
|
|
|
ports:
|
2023-06-04 20:13:39 -05:00
|
|
|
- "26565:25565/tcp"
|
|
|
|
- "26565:25565/udp"
|
2023-06-04 19:55:03 -05:00
|
|
|
volumes:
|
|
|
|
- /data/minecraft/vanilla:/data
|
|
|
|
tags: [ docker, minecraft ]
|