diff --git a/README.md b/README.md index 75247ee..4b6f081 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,74 @@ # Minecraft -## Backup +## Getting server.jar + +![Click Installations](img/main.png) +![Select the Options Menu](img/menu.png) +![Click Edit](img/edit.png) +![Click Download Server](img/server.png) + +## 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: /minecraft:-1 + ports: +... +``` + +then run + +```bash +docker-compose push +``` + +## Running in kubernetes + +In k8s/deploy.yaml, edit the deploy + +```yaml +... + spec: + containers: + - name: minecraft + image: + 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 :/mc_data ``` -## Restore +## Restore from Backup ```bash kubectl cp :/mc_data ``` -## Cool seed +## Cool seeds -amplified, -8018833100564192815 \ No newline at end of file +with an amplified world, -8018833100564192815 \ No newline at end of file diff --git a/img/edit.png b/img/edit.png new file mode 100644 index 0000000..37b1c16 Binary files /dev/null and b/img/edit.png differ diff --git a/img/main.png b/img/main.png new file mode 100644 index 0000000..d155511 Binary files /dev/null and b/img/main.png differ diff --git a/img/menu.png b/img/menu.png new file mode 100644 index 0000000..537ea7e Binary files /dev/null and b/img/menu.png differ diff --git a/img/server.png b/img/server.png new file mode 100644 index 0000000..7f8b73d Binary files /dev/null and b/img/server.png differ