Git Product home page Git Product logo

tmodloader-docker's Introduction

Docker container for dedicated tmodloader server.

tModLoader repo : https://github.com/tModLoader/tModLoader/ Hopefully the tmod team will come up with a better implementation that they can maintain.

Before you run

Currently, you need the following files and directories on your local machine before starting the server :

  • serverconfig.txt
  • a folder with all your mod files (.tmod) and the enabled.json file
  • a folder with all your maps
  • if you want to download mods from the steam workshop, the install.txt file All those files are described in the tmodloader wiki.

Build & run with docker-compose

READ AND EDIT THE docker-compose.yaml FILE FIRST. It contains mount paths for the files and directories mentioned above. Then run :

docker-compose up --build

Build & run with docker

Edit the following commands to match the paths on the host :

export MODS_DIRECTORY=/path/to/mods/directory
export WORLDS_DIRECTORY=/path/to/worlds/directory
export SERVERCONFIG_PATH=/path/to/serverconfig.txt
export INSTALL_TXT=/path/to/install.txt
docker build -t tmodloader . 
docker run -p 7777:7777 --name tmodloader --rm \
  -v $WORLDS_FOLDER:/root/.local/share/Terraria/tModLoader/Worlds \
  -v $MODS_FOLDER:/root/.local/share/Terraria/tModLoader/Mods \
  -v $SERVERCONFIG_PATH:/root/terraria-server/serverconfig.txt \
  -v $INSTALL_TXT:/root/terraria-server/install.txt \
  tmodloader

tmodloader-docker's People

Contributors

joestratton avatar rfvgyhn avatar guillheu avatar plasmaeye avatar vaugtro avatar ldericher 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.