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

33 lines
916 B
YAML
Raw Normal View History

2023-09-26 16:09:27 +00:00
# 2023-09-26
2023-09-25 08:40:20 +00:00
# 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"
2023-09-26 16:09:27 +00:00
memory: "{{ 2.0 if 2.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
2023-09-25 08:40:20 +00:00
volumes:
- { local: './{{ stack_folder_datas }}/itzg/datas', container: '/data', mode: 'rw' }