Skip to content

About

Terraria server for Docker (TShock + Terracord)

Resources

Contributing

Stars

8 stars

Watchers

2 watching

Forks

Repository files navigation

Terraria server that runs inside a Docker container

This Docker image runs a TShock Terraria server in a single, configurable image.

This project is partially based on ryansheehan's image.

Usage

Basic usage is as follows:

docker run \
  -p 0.0.0.0:7777:7777 \
  -p 0.0.0.0:7878:7878 \
  -e WORLD_FILENAME=docker.wld \
  -e TCR_DISCORD_ENABLED=true \
  -e TCR_DISCORD_BOT_TOKEN="<bot token>" \
  -e TCR_DISCORD_CHANNEL_IDS="<channel id>" \
  -e TCR_DISCORD_OWNER_ID="<owner id>" \
  -v $(pwd)/terraria_data/worlds:/tshock/worlds \
  -v $(pwd)/terraria_data/plugins:/plugins \
  -v $(pwd)/terraria_data/logs:/tshock/logs \
  $@ \
  --name terraria-server \
  -it \
  --rm \
  didstopia/terraria:latest

The Discord bridge is powered by TerrariaChatRelay and is entirely optional and disabled by default. Enable it by setting TCR_DISCORD_ENABLED=true and supplying a bot token plus one or more channel ids (TCR_DISCORD_CHANNEL_IDS accepts a comma-separated list). Further options can be tuned in the generated config under /tshock/worlds/TerrariaChatRelay/.

Issues

If you need help, have questions or bug submissions, feel free to contact me @Dids on Twitter, and on the Rust Server Owners Slack community.

About

Terraria server for Docker (TShock + Terracord)

Resources

Contributing

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages