Sign inSign up

sixarm/terraria

By sixarm

•Updated almost 10 years ago

Terraria server with unRAID /config volume.

Image
0

300

sixarm/terraria repository overview

⁠Terraria with TShock - Docker

Docker build for managing a Terraria server with Tshock.

Version TShock 4.3.22 for Terraria 1.3.4.4 (github⁠)

⁠Usage

Fast & Easy server setup :
docker run -d -p 7777:7777 -v {PathToTerrariaFolder}:/config --name terraria -e TERRARIA_WORLD_SIZE=3 -e TERRARIA_WORLD_NAME="myservername" sixarm/terraria-docker

You can map the plugins directory to add your plugins with -v {PathToPluginDirectory}:/tshock/ServerPlugins

Edit your config files in {PathToTerrariaFolder}/cfg
See your log files in {PathToTerrariaFolder}/logs
Backup your world from {PathToTerrariaFolder}/world
Add dll plugins in {PathToPluginDirectory}

You can map the REST port with -p 7878:7878 after changing "RestApiEnabled": false, in {PathToTerrariaFolder}/cfg/config.json


  • First run
    docker run -it -p 7777:7777 -p 7878:7878 -v {PathToPluginDirectory}:/tshock/ServerPlugins -v {PathToTerrariaFolder}:/config --name terraria -e TERRARIA_WORLD_SIZE=3 -e TERRARIA_WORLD_NAME="myservername" sixarm/terraria-docker
  • Wait for terraria to init & launch, note your auth code and tape exit to quit.
  • Modify your config files in {PathToTerrariaFolder}/cfg/
  • Add dll plugins in {PathToPluginDirectory}.
  • docker start terraria
  • Enjoy !

** You can activate REST api in your config file and add your server on http://www.tserverweb.com/⁠ to manage it. **


⁠Variables

  • TERRARIA_WORLD_NAME Name of server (default: terraria)
  • TERRARIA_WORLD_SIZE Size of your map (1: small, 2: normal, 3: big) (default: 3)

⁠Volumes

  • /terraria : Server data directory :
    • /config/world : Server files and data.
    • /config/logs : logs
    • /config/cfg : config files
  • /tshock/ServerPlugins : Plugin directory.

⁠Expose

  • Port : 7777 : Server port
  • Port : 7878 : REST api port

⁠Known issues

Tag summary

Content type

Image

Digest

Size

313.9 MB

Last updated

almost 10 years ago

docker pull sixarm/terraria