A quick guide to a Docker powered dedicated server for Terraria
Preparations
Docker Engine
- Make shure Docker is installed
Port Forwardings
You need some port forwardings on your fire wall. The default ports are:
- 27300/TCP
Persist Data
Create a directory for Steam, for the binaries and for the save game:
- mkdir -p $HOME/terraria/world
Mod Control
Download Config File – [github.com] or creat your own. Edit the mod config file, then copy it on the docker host to:
$HOME/terraria/terrariaserverconfig.txt
Run Container
docker run –name terraria -it –rm -e PORTGAME=27300 -p 27300:27300/tcp -v $HOME/terraria/terrariaserverconfig.txt:/terraria/terrariaserverconfig.txt -v $HOME/terraria/world:/.local/share/Terraria/Worlds dockrbyter/terraria
Settings
Environment Variables (and their defaults)
- PORTGAME=27300
Locations
- Config Files: ~/terraria
- Save Games: ~/terraria/world
- Config File: ~/terraria/terrariaserverconfig.txt
Links
- Docker Hub Repo – [docker.com]
- GitHub Dockerfile – [github.com]
- GitHub Wiki – [github.com]
- Terraria Server Config File – [github.com]
- Terraria Wiki: Server Setup – [fandom.com]
- Docker Setup – [docker.com]
This is all about Terraria – Dedicated Server / Docker Container; I hope you enjoy reading the Guide! If you feel like we should add more information or we forget/mistake, please let us know via commenting below, and thanks! See you soon!
- All Terraria Posts List
Leave a Reply