add images
This commit is contained in:
65
README.md
65
README.md
@@ -1,17 +1,74 @@
|
||||
# Minecraft
|
||||
|
||||
## Backup
|
||||
## Getting server.jar
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Running Locally
|
||||
|
||||
```bash
|
||||
docker-compose build minecraft
|
||||
docker-compose up minecraft
|
||||
```
|
||||
|
||||
## Uploading to Docker Hub
|
||||
|
||||
In docker-compose.yaml, update the image tag to:
|
||||
|
||||
```yaml
|
||||
...
|
||||
services:
|
||||
minecraft:
|
||||
build: .
|
||||
image: <your_username>/minecraft:<version>-1
|
||||
ports:
|
||||
...
|
||||
```
|
||||
|
||||
then run
|
||||
|
||||
```bash
|
||||
docker-compose push
|
||||
```
|
||||
|
||||
## Running in kubernetes
|
||||
|
||||
In k8s/deploy.yaml, edit the deploy
|
||||
|
||||
```yaml
|
||||
...
|
||||
spec:
|
||||
containers:
|
||||
- name: minecraft
|
||||
image: <your image from above>
|
||||
ports:
|
||||
...
|
||||
```
|
||||
|
||||
Then run the following
|
||||
|
||||
```bash
|
||||
kubectl apply -f k8s/pvc
|
||||
kubectl apply -f k8s
|
||||
```
|
||||
|
||||
Your minecraft server will be available on port 25565
|
||||
|
||||
## Create a Backup
|
||||
|
||||
```bash
|
||||
kubectl cp <pod_name>:/mc_data <backup>
|
||||
```
|
||||
|
||||
## Restore
|
||||
## Restore from Backup
|
||||
|
||||
```bash
|
||||
kubectl cp <backup> <pod_name>:/mc_data
|
||||
```
|
||||
|
||||
## Cool seed
|
||||
## Cool seeds
|
||||
|
||||
amplified, -8018833100564192815
|
||||
with an amplified world, -8018833100564192815
|
||||
BIN
img/edit.png
Normal file
BIN
img/edit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 481 KiB |
BIN
img/main.png
Normal file
BIN
img/main.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
BIN
img/menu.png
Normal file
BIN
img/menu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 476 KiB |
BIN
img/server.png
Normal file
BIN
img/server.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 348 KiB |
Reference in New Issue
Block a user