forked from Mirrorlandia_minetest/minetest
master #6
23
README.md
23
README.md
@ -128,28 +128,7 @@ Docker
|
|||||||
|
|
||||||
- [Developing minetestserver with Docker](doc/developing/docker.md)
|
- [Developing minetestserver with Docker](doc/developing/docker.md)
|
||||||
|
|
||||||
We provide Minetest server Docker images using the GitLab mirror registry.
|
We provide a Dockerfile that can be used to build the server.
|
||||||
|
|
||||||
Images are built on each commit and available using the following tag scheme:
|
|
||||||
|
|
||||||
* `registry.gitlab.com/minetest/minetest/server:latest` (latest build)
|
|
||||||
* `registry.gitlab.com/minetest/minetest/server:<branch/tag>` (current branch or current tag)
|
|
||||||
* `registry.gitlab.com/minetest/minetest/server:<commit-id>` (current commit id)
|
|
||||||
|
|
||||||
If you want to test it on a Docker server you can easily run:
|
|
||||||
|
|
||||||
sudo docker run registry.gitlab.com/minetest/minetest/server:<docker tag>
|
|
||||||
|
|
||||||
If you want to use it in a production environment you should use volumes bound to the Docker host
|
|
||||||
to persist data and modify the configuration:
|
|
||||||
|
|
||||||
sudo docker create -v /home/minetest/data/:/var/lib/minetest/ -v /home/minetest/conf/:/etc/minetest/ registry.gitlab.com/minetest/minetest/server:master
|
|
||||||
|
|
||||||
Data will be written to `/home/minetest/data` on the host, and configuration will be read from `/home/minetest/conf/minetest.conf`.
|
|
||||||
|
|
||||||
**Note:** If you don't understand the previous commands please read the official Docker documentation before use.
|
|
||||||
|
|
||||||
You can also host your Minetest server inside a Kubernetes cluster. See our example implementation in [`misc/kubernetes.yml`](misc/kubernetes.yml).
|
|
||||||
|
|
||||||
|
|
||||||
Version scheme
|
Version scheme
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: minetest
|
|
||||||
name: minetest
|
|
||||||
namespace: default
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: minetest
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: minetest
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: registry.gitlab.com/minetest/minetest/server:master
|
|
||||||
name: minetest
|
|
||||||
ports:
|
|
||||||
- containerPort: 30000
|
|
||||||
protocol: UDP
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/lib/minetest
|
|
||||||
name: minetest-data
|
|
||||||
- mountPath: /etc/minetest
|
|
||||||
name: config
|
|
||||||
restartPolicy: Always
|
|
||||||
volumes:
|
|
||||||
- name: minetest-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: minetest-data
|
|
||||||
- configMap:
|
|
||||||
defaultMode: 420
|
|
||||||
name: minetest
|
|
||||||
name: config
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: minetest
|
|
||||||
name: minetest
|
|
||||||
namespace: default
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: minetest
|
|
||||||
port: 30000
|
|
||||||
protocol: UDP
|
|
||||||
selector:
|
|
||||||
app: minetest
|
|
||||||
type: NodePort
|
|
Loading…
Reference in New Issue
Block a user