Skip to content

TuRz4m/Terraria-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Terraria with TShock - Docker

Docker build for managing a Terraria server with Tshock.

Version TShock 4.3.9 for Terraria 1.3.0.8 (github)

Usage

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

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

Edit your config files in {PathToTerrariaFolder}/config
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}/config/config.json


Recommended Usage

  • First run
    docker run -it -p 7777:7777 -p 7878:7878 -v {PathToPluginDirectory}:/tshock/ServerPlugins -v {PathToTerrariaFolder}:/terraria --name terraria -e TERRARIA_WORLD_SIZE=3 -e TERRARIA_WORLD_NAME="myservername" turzam/terraria
  • Wait for terraria to init & launch, note your auth code and tape exit to quit.
  • Modify your config files in {PathToTerrariaFolder}/config/
  • 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 :
    • /terraria/world : Server files and data.
    • /terraria/logs : logs
    • /terraria/config : config files
  • /tshock/ServerPlugins : Plugin directory.

Expose

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

Known issues

About

Docker build for terraria server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages