This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
omni-ansible/resources/docker-compose/minecraft.yaml.j2

54 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2020-12-09 03:58:15 +00:00
---
version: "{{ omni_compose_version | string }}"
networks:
minecraft:
name: minecraft
driver: overlay
ipam:
driver: default
config:
- subnet: {{ omni_compose_apps.minecraft.networks.main }}
volumes:
minecraft-data:
name: datastore{{ omni_compose_apps.minecraft.datastore }}
driver: glusterfs
services:
server:
image: itzg/minecraft-server:{{ omni_compose_apps.minecraft.versions.main }}
hostname: minecraft
networks:
- minecraft
ports:
- published: {{ omni_compose_apps.minecraft.published.ports.25565 }}
target: 25565
protocol: tcp
mode: ingress
volumes:
- type: volume
source: minecraft-data
target: /data
read_only: false
environment:
EULA: "TRUE"
TZ: Americas/New_York
VERSION: {{ omni_compose_apps.minecraft.versions.server }}
MAX_MEMORY: "8G"
MOTD: "A home for buttery companions"
MODE: survival
OPS: ScifiGeek42
WHITELIST: "ScifiGeek42,fantasycat256,CoffeePug,Snowdude21325,KaiserSJR,glutenfreebean"
MAX_BUILD_HEIGHT: "512"
SNOOPER_ENABLED: "false"
ICON: https://cdn.enp.one/img/logos/e-w-sm.png
ENABLE_RCON: "false"
UID: "{{ omni_compose_apps.minecraft.account.uid | string }}"
GID: "{{ omni_compose_apps.minecraft.account.uid | string }}"
deploy:
replicas: 1