TShock terraria server in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dave 9b7cb75add Bump version 4 years ago
Dockerfile Bump version 4 years ago
README.md Updated readme 4 years ago
cli.py Initial commit 4 years ago
config.json Updated readme 4 years ago
start Initial commit 4 years ago
supervisor-terraria.conf Initial commit 4 years ago
supervisor.conf Initial commit 4 years ago

README.md

docker-terraria

Terraria (tshock) under Mono in a docker container.

Reccomended usage:

docker run -d -p 7777:7777 -p 7878:7878 -v /host/terraria_data/:/opt/terraria/tshock/ terraria

To enable RPC, config.json must be copied to /host/terraria_data/.

Env vars

  • WORLDSIZE - default 1, can be 2 or 3 for small/med/large worlds
  • WORLDFILENAME - default “terraria.wld”, name for the world save file

Admin cli

Included is an admin tool for interacting with a server.

First-time setup:

  • trcli -a mkuser

Per-run token generation:

  • trcli -a gettoken

Execute arbitrary commads:

  • `trcli -a cmd -c ‘/protectspawn’v