Git Product home page Git Product logo

Comments (13)

mtoensing avatar mtoensing commented on June 23, 2024

I use this only with my synology. If you did write one I would be glad to add it to the repository.

from docker-minecraft-papermc-server.

fajfer avatar fajfer commented on June 23, 2024

Sure, I could write example line of yours and put it as a .yml for other to use

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

Great! Because I don't use Docker Compose for myself. If you post it here or add a pull request that would be great!

from docker-minecraft-papermc-server.

fajfer avatar fajfer commented on June 23, 2024

I didn't manage to even run the container because of some issues (KVM running on Xeon) that are apparently tied to AMD (some JVM instructions missing). Tried debugging this one a bit but eventually gave up, might come back with it later though. Maybe I'm not the only one with weird JVM issues like this

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

so there are compatibility issues with JVM if the underlying host system uses an AMD cpu? That sound weird. Many ppl use this image and I never heard of a problem like that.

from docker-minecraft-papermc-server.

fajfer avatar fajfer commented on June 23, 2024

That's what I found on the web, which is weird because I'm getting exactly the same error on a Xeon, haven't tested on AMD at all. And yeah AMD x Java is overall a global issue, requires additional flag and works flawlessly, apparently, just doesn't change a thing on my server

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

Show me the error then :)

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

Ok, let's close this for now

from docker-minecraft-papermc-server.

leothelocust avatar leothelocust commented on June 23, 2024

I know this is closed, but I needed this, so I made it.

docker-compose.yml

version: "3.9"

services:
  minecraft:
    image: "marctv/minecraft-papermc-server:1.16"
    container_name: "minecraft"
    environment: 
      MEMORYSIZE: "16G"
    volumes:
      - "/home/yourdir/minecraft:/data:rw"
    ports: 
      - "25565:25565"
    # The following allow `docker attach minecraft` to work
    stdin_open: true
    tty: true

and I also created a supporting Makefile (because I can never remember the docker commands)

help:
	@echo "Custom Makefile by Levi Olson:"; \
	echo "version 1.0"; \
	echo ""; \
	echo "\thelp\tPrints this message"; \
	echo ""; \
	echo "\tstart\tdocker-compose up --build"; \
	echo "\t\t(starts the minecraft server)"; \
	echo ""; \
	echo "\tstop\tdocker-compose stop --rmi all --remove-orphans"; \
	echo "\t\t(stops and cleans up images, but keeps data)"; \
	echo ""; \
	echo "\tattach\tdocker attach minecraft"; \
	echo "\t\t(attaches to minecraft paper jar for issuing commands)";

start:
	@echo "Starting Minecraft Server..."; \
	docker-compose up -d --build;

stop:
	@echo "Stopping Minecraft Server and cleaning up..."; \
	docker-compose down --rmi all --remove-orphans;

attach:
	@echo "Attaching to Minecraft..."; \
	echo "Ctrl-C stops minecraft and exits"; \
	echo "Ctrl-P Ctrl-Q only exits"; \
	echo ""; \
	echo "Type "help" for help."; \
	docker attach minecraft;

Hope this helps someone else!

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

I added the docker-compose.yml What is a "Makefile"? Can you elaborate on that? Maybe a pull request? Just fork it a provide a pull request.

from docker-minecraft-papermc-server.

leothelocust avatar leothelocust commented on June 23, 2024

A makefile is a file (by default named "Makefile") containing a set of directives used by a make build automation tool to generate a target/goal.

In this case, its purpose is to provide easy commands to achieve something more complex. The Makefile would go in the same direcory as the docker-compose.yml file.

- Dockerfile
- Makefile
- docker-compose.yml

Then, once the Makefile is in place, you can type the following in the CLI:

$ make start

Which would actually run:

docker-compose up -d --build

and

make stop    -> docker-compose down --rmi all --remove-orphans
make help    -> prints a help menu of sorts (just a bunch of echo text)
make attach  -> runs the `docker attach minecraft` command so you can control the server

The Makefile is 100% customizable, and pretty much at the discretion of the project owner's taste and preferences. I'll create a pull request, no hard feelings if you choose to reject.

from docker-minecraft-papermc-server.

leothelocust avatar leothelocust commented on June 23, 2024

PR created #17

from docker-minecraft-papermc-server.

mtoensing avatar mtoensing commented on June 23, 2024

Great. Merged. Thank you. Would you mind to extend the Reader with examples?

from docker-minecraft-papermc-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.