# Pubcraft ## 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 from Backup ```bash kubectl cp :/mc_data ``` ## Cool seeds with an amplified world, -8018833100564192815