Sign inSign up

jidef/terraria

By jidef

•Updated over 5 years ago

Simple Terraria server

Image
0

218

jidef/terraria repository overview

⁠Quick start

⁠Create directory to save your files

Next create a directory for your world file, configuration and logs.

mkdir ~/data
⁠Run the imagen

Start the container, set the port and the location of the configuration files.

docker run -it --rm \
-p 7777:7777 \ 
-v ~/data:/root \
jidef/terraria

Note: If you close the the terminal, the server will stop running.

⁠To start with a preexisting world

Just move all your stuff to the directory you created before starting the container.

⁠Building from source

Assuming git⁠ and docker⁠ are installed..

  1. Clone this repository

    git clone https://github.com/jidef/terraria.git
    
  2. Open a terminal window into the directory downloaded by the git

  3. Build the container

    docker build -t <name_here> .
    

⁠Plugin support

A volume exists to support plugins. Create a folder, not inside your /data folder, for your plugins

mkdir ServerPlugins

Mount the plugins directory with an additional -v switch on your docker run ... command

-v <path_to_your_ServerPlugins_folder>:/tshock/ServerPlugins/

Tag summary

Content type

Image

Digest

Size

76.3 MB

Last updated

over 5 years ago

docker pull jidef/terraria