MCServerDocker/README.md

28 lines
936 B
Markdown
Raw Normal View History

2024-01-25 23:12:09 +01:00
# MCServerDocker
2024-01-27 17:13:25 +01:00
Runs a Minecraft Server inside a Docker container.
2024-01-25 23:12:09 +01:00
# Java Edition only
This only supports the true version of Minecraft, not that phone and console spinoff named "Bedrock Edition".
2024-01-26 00:14:31 +01:00
# Setting up
## Step 1: Installing
This will bootstrap MCSD.
```bash
git clone "https://git.staropensource.de/JeremyStarTM/mcserverdocker.git"
cd mcserverdocker
mkdir server
cp config.example.env config.env
2024-01-26 00:14:31 +01:00
```
## Step 2: Installing the server software
Rename the jar file of your preferred server software to `server.jar` and move it into the `server/` directory.
## Step 3: Modify the configuration
Take a look at the environment variables inside the `config.env` file.
2024-01-26 00:14:31 +01:00
## Step 4: Launching the server
You need to start your server two times as we need to generate the `server.properties` file first. MCSD will do this automatically for you.
```plain
# Use this to launch your server every time you need it
docker compose up -d
```