ansible/roles/stacks/composes/inventory/itzg.yml

33 lines
916 B
YAML

# 2023-09-26
# Stack: itzg
---
itzg:
name: "itzg"
tasks:
- itzg.yml
ipv6: true
directories:
- "{{ stack_folder_datas }}/itzg/datas"
services:
- name: "itzg"
image: "itzg/minecraft-server:java17-graalvm-ce"
restart: "no"
ports:
- { exposed: "25565", container: "25565" }
environment:
- { name: "EULA", value: "TRUE" }
- { name: "TYPE", value: "FABRIC" }
- { name: "VERSION", value: "1.20.1" }
- { name: "ENABLE_COMMAND_BLOCK", value: "TRUE" }
- { name: "MEMORY", value: "2G" }
tmpfs: 256M
ressources:
cpu: "1.0"
memory: "{{ 2.0 if 2.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
volumes:
- { local: './{{ stack_folder_datas }}/itzg/datas', container: '/data', mode: 'rw' }