Skip to content

Easily setup a Terraria server with Docker

License

Notifications You must be signed in to change notification settings

izhuooo/docker-tshock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tShock Docker App

A docker app to run a tShock server for Terraria based on frolvlad/alpine-mono

Startup script borrowed from silvertoken/tshock-docker


Initial run to generate world

This will start the server in interactive mode and allow you to create a world. It mounts all the volumes into directories under the location you specify. As an example you could use some place like /opt/tshock for your file locations.

docker run -it -p 7777:7777 -v <path to config>:/config -v <path to logs>:/logs -v <path to world>:/world -v <path to plugins>:/plugins --name="tshock" mark2dot0/tshock

example usage:

docker run -it -p 7777:7777 -v /opt/tshock/config:/config -v /opt/tshock/logs:/logs -v /opt/tshock/world:/world -v /opt/tshock/plugins:/plugins --name="tshock" mark2dot0/tshock

Autoload world and detach

This command will autoload the world you made above and detach from the process so that it runs in the background.

docker run -dit -p 7777:7777 -v /opt/tshock/config:/config -v /opt/tshock/logs:/logs -v /opt/tshock/world:/world -v /opt/tshock/plugins:/plugins mark2dot0/tshock -world /world/<name of world you made>.wld

About

Easily setup a Terraria server with Docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 79.7%
  • Shell 20.3%