Add minecraft compose application
This commit is contained in:
		
							
								
								
									
										53
									
								
								resources/docker-compose/minecraft.yaml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								resources/docker-compose/minecraft.yaml.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,53 @@
 | 
			
		||||
---
 | 
			
		||||
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
 | 
			
		||||
@@ -33,3 +33,16 @@ omni_compose_apps:
 | 
			
		||||
      main: 192.168.103.0/24
 | 
			
		||||
    versions:
 | 
			
		||||
      default: 1.11.5
 | 
			
		||||
  minecraft:
 | 
			
		||||
    datastore: /appdata/minecraft
 | 
			
		||||
    account:
 | 
			
		||||
      name: mech_minecraft
 | 
			
		||||
      uid: 1297
 | 
			
		||||
    published:
 | 
			
		||||
      ports:
 | 
			
		||||
        25565: 25565
 | 
			
		||||
    networks:
 | 
			
		||||
      main: 192.168.102.0/24
 | 
			
		||||
    versions:
 | 
			
		||||
      main: latest
 | 
			
		||||
      server: 1.15.2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user