Above-and-Beyond icon indicating copy to clipboard operation
Above-and-Beyond copied to clipboard

Include an install.sh in the server zip for easy use with itzg/docker-minecraft

Open danielkinahan opened this issue 2 years ago • 1 comments

For easy use with itzg/minecraft-docker you could include a file named install.sh in the archive with the contents: java -jar forge-1.16.5-36.2.20-installer.jar --installServer

Also it would be nice to have an example docker command or compose file. Here is mine:

version: "3"

services:
  mc:
    image: itzg/minecraft-server:java8
    environment:
      EULA: "true"
      DEBUG: "true"
      TYPE: CURSEFORGE
      VERSION: 1.16.5
      CF_SERVER_MOD: Above+and+Beyond-1.3-Server.zip
      #Zip file must be in local minecraft-data folder
    ports:
      - "25565:25565"
    restart: unless-stopped
    tty: true
    stdin_open: true
    volumes:
      - ./minecraft-data:/data

danielkinahan avatar Aug 26 '22 18:08 danielkinahan

I am using itzg/docker-minecraft and this feature would be great!

zerowhybr avatar Oct 17 '23 11:10 zerowhybr