34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
# vim:ft=ansible:
|
|
- name: docker deploy minecraft - vanilla
|
|
docker_container:
|
|
name: minecraft-vanilla
|
|
state: absent
|
|
image: itzg/minecraft-server:latest
|
|
restart_policy: unless-stopped
|
|
pull: yes
|
|
env:
|
|
DIFFICULTY: "normal"
|
|
ENABLE_COMMAND_BLOCK: "true"
|
|
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"
|
|
TYPE: "MODRINTH"
|
|
USE_AIKAR_FLAGS: "true"
|
|
VIEW_DISTANCE: "12"
|
|
ports:
|
|
- "26565:25565/tcp"
|
|
- "26565:25565/udp"
|
|
volumes:
|
|
- /data/minecraft/vanilla:/data
|
|
tags: [ docker, minecraft ]
|