Comments (13)
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.
Sure, I could write example line of yours and put it as a .yml for other to use
from docker-minecraft-papermc-server.
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.
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.
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.
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.
Show me the error then :)
from docker-minecraft-papermc-server.
Ok, let's close this for now
from docker-minecraft-papermc-server.
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.
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.
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.
PR created #17
from docker-minecraft-papermc-server.
Great. Merged. Thank you. Would you mind to extend the Reader with examples?
from docker-minecraft-papermc-server.
Related Issues (20)
- UnknownHostException: piston-data.mojang.com HOT 1
- Plugin (Permission Denied) HOT 1
- Server files are unwriteable in rootless mode HOT 2
- Why we should use `--rm ` flag in quick start container ? any pros and cons ? HOT 1
- How do I acess previous images. HOT 1
- Specific Patch Tags for docker HOT 1
- experimental features
- Couldn't send command in terminal through "docker attach x" HOT 1
- Accessing Older Versions HOT 2
- Can't start container HOT 1
- auto updated with no way to rollback and no granular version control options HOT 1
- 1.20 Server crashes after start HOT 3
- Unable to edit files/add files to folders HOT 1
- allow unauthenticated profiles HOT 1
- OutOfMemoryError: Java heap space HOT 4
- OutOfMemoryError: Java heap space HOT 2
- Keeping 1.20.1? HOT 1
- The GID `XXX' is already in use. HOT 1
- Unable to find image 'marctv/minecraft-papermc-server:1.20.1' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp [2600:1f18:2148:bc01:a3b0:6734:c617:7c5c]:443: connect: connection refused. See 'docker run --help'. HOT 1
- Automatically update the 1.20 tag in docker hub HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-minecraft-papermc-server.