tiny server config for a lil server i call "turtle" (just for a few friends)
during first time setup you will want to run get-env.sh
to initialize .env
with the appropriate UID
and GID
values.
from there, it's just a matter of configuring some optional env vars if you want the Discord bot to work, namely:
CFG_DISCORD_TOKEN
- the bot token for your Discord bot (for MC <-> Discord integration)CFG_DISCORD_CHANNEL
- the channel ID where you want the bot to send server & player messagesCFG_DISCORD_ADMIN_ROLE
- the role ID for gating access to admin-only commands (like/stop
from within Discord)
DISCORD_TOKEN
- probably same asCFG_DISCORD_TOKEN
in.env
. sets up a bot w/ a slash command to start the server if it ever dies for whatever reason
just docker compose up -d
from within the turtle-server
directory to start, docker compose down
to stop
you can docker compose attach mc
to access the interactive console. use Ctrl-p Ctrl-q to detach