scripts/fogcutter/docker/minecraft.sh

28 lines
460 B
Bash
Raw Normal View History

2021-05-16 21:41:38 -04:00
#!/bin/bash
set -e
up () {
docker run \
--detach \
--name minecraft \
--restart unless-stopped \
--env EULA=TRUE \
--env MAX_MEMORY=8G \
2022-02-26 12:14:35 -05:00
--env VERSION=1.18.1 \
--volume /bigdata/k8s-config/minecraft/1.18-data:/data:rw \
2021-05-16 21:41:38 -04:00
--publish 127.0.0.1:25565:25565 \
docker.io/itzg/minecraft-server:latest
}
down () {
docker stop minecraft || true
docker rm minecraft || true
}
logs () {
docker logs --follow minecraft
}
$@