Giter Club home page Giter Club logo

terraria-server's Introduction

terraria-server

Quickly deploy a dedicated Terraria server via Docker

Prerequisites

  • Your host is ready to run docker containers
  • You have a world file already

If you don't have a world file already, checkout the beardedio/terraria GitHub page for instructions on creating a world.

Deployment

Prepare Server Files

Included in this repo are two files:

  • serverconfig.txt
  • banlist.txt

Copy these files as well as your world file to a destination path you'd like to store your world.

My path: /mnt/media/games/terraria/rakara

Things you may want to modify in serverconfig.txt before running the server:

  • motd (message of the day)
  • password

Take a look at the other options in the file as well.

Prepare ddclient

If you want to use a hostname to connect to your server instead of IP address, and if you use Cloudflare as your nameserver, do this:

mv ddclient-sample.conf ddclient.conf

Then edit the ddclient.conf file for your needs

Option 1: Docker Run

Set the location of your world file:

export HOST_WORLD_PATH=/mnt/media/games/terraria/rakara

export HOST_WORLD_FILENAME=Rakara.wld

docker run -dit \
  --name=terraria-rakara \
  -v $HOST_WORLD_PATH:/config \
  -e world=$HOST_WORLD_FILENAME \
  -p 7777:7777 \
  beardedio/terraria:vanilla-latest

Option 2: Docker Compose

Create the env file

cp .env-sample .env

Modify .env:

vim .env

If you dont want to use ddclient, just delete that container from the docker-compose.yml file.

Start it:

docker-compose up -d

Credit

Helpful resources:

LICENSE

MIT License

terraria-server's People

Contributors

willquill avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.