Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While setting up my server again, I created a docker compose file for my own server using your dockerfile.
I have some other ideas in mind to implement on my own server- if one downloads the paper server .jar file on the server and place it in the directory- then the dockerfile will copy it to the container, if the bash script finds a .jar file then it uses that one- skipping the download from papermc.
Below is a brief documentation for Docker Compose, which can be included either in the main README.md file or in a separate
.md file
Docker compose
This is a simple setup for running a PaperMC Minecraft server using docker compose.
This docker Compose configuration stores a persistent volume alongside the server data in the specified directory. To switch to Docker's volume management, edit the docker-compose file, remove the relative path under volumes:
./papermc:/papermctopapermc:/papermcRequirements
Setup
.envfile with the following command:echo -e "MC_VERSION=latest\nPAPER_BUILD=latest\nEULA=true\nMC_RAM=2G\nJAVA_OPTS=" > .envdocker-compose up -dDocker Compose Commands
To build the server:
docker-compose buildTo run the server:
docker-compose up -dTo stop the server:
docker-compose downView the server logs:
To view the server logs, run one of the following commands:
docker logs <container-name> -fdocker-compose logs -f- requires you to go into the papermc directory