Docker image for the TES3MP server
https://hub.docker.com/r/tes3mp/server/
docker pull tes3mp/server
docker pull tes3mp/server:0.6.3
git clone https://github.com/GrimKriegor/TES3MP-docker.git
cd TES3MP-docker
git checkout <TES3MP version> # optional
docker build -t tes3mp/server:<TES3MP version> .
There is no need to pull the image when running the container through one of the methods described below.
Replace the path described at the -v
(volume) argument to a directory on your machine you already have, or wish to have compatible server data and scripts. Keep the path that comes after the colon, as its the internal container path to where server data should be.
docker run -it \
--name TES3MP-server \
-v "$HOME/TES3MP/data:/server/data" \
-p "25565:25565/udp" \
tes3mp/server
docker run -it \
--name TES3MP-server \
-v "$HOME/TES3MP/data:/server/data" \
-p "25565:25565/udp" \
tes3mp/server:0.6.3
Same as above, but removing the -it
arguments.
And to later attach the console:
docker attach TES3MP-server
Alternatively you can use a compose file to deploy one or more servers as a stack.
Create a file titled docker-compose.yml with the following contents:
version: '3'
services:
server:
image: "tes3mp/server:0.6.3"
volumes:
- "./data:/server/data"
ports:
- "25565:25565/udp"
# Optional extra servers:
server-legacy:
image: "tes3mp/server:0.5.2"
volumes:
- "./data-legacy:/server/data"
ports:
- "25566:25565/udp"
docker-compose up
docker stack deploy -c docker-compose.yml tes3mp-server-stack