docker-bits/lsio/minetest/docker-run.sh

16 lines
869 B
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Minetest](http://www.minetest.net/) (server) is a near-infinite-world block
# sandbox game and a game engine, inspired by InfiniMiner, Minecraft, and the
# like.
2021-04-10 10:16:29 +00:00
source ./.env
docker run -d \
--name=minetest \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2023-02-26 14:51:38 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
2022-05-04 00:58:11 +00:00
-e CLI_ARGS="--gameid minetest --port 30000" `# optional` `# Optionally specify any [CLI variables](https://wiki.minetest.net/Command_line) you want to launch the app with` \
2021-04-10 10:16:29 +00:00
-p 30000:30000/udp `# Port Minetest listens on.` \
-v ${BASEDIR:-/volume1/docker}/minetest/config/.minetest:/config/.minetest `# Where minetest stores config files and maps etc.` \
--restart unless-stopped \
ghcr.io/linuxserver/minetest