/terraria-server

Terraria Docker Container with TShock

Primary LanguageShellApache License 2.0Apache-2.0

terraria-server

This is the fork of SolusOperandi's repository aimed to be OpenShift-compliant and run in user mode.

Versioning

We follow TShock's versioning system. If there is a new release of TShock, we update the repository accordingly to deploy with the new version.

We suggest looking at TShock if you want to contribute.

Running

We require Docker or Podman to run the container, but I highly suggest Podman since its more structured and modular.

docker pull chinodesuuu/terraria-server:latest or podman pull chinodesuuu/terraria-server:latest.

for version-specific, just do for example v4.3.25, docker pull chinodesuuu/terraria-server:v4.3.25 or podman pull chinodesuuu/terraria-server:v4.3.25.

Run the server by using docker run or podman run with port exposed to 7777.

To use your existing configurations or worlds, you need to host mount the location to the following:

  • Terraria world mounts in /opt/Terraria/world.
  • TShock configs mounts in /opt/Terraria/config.
  • TShock server logs mounts in /opt/Terraria/tshock/logs.
  • TShock server plugins mounts in /opt/Terraria/tshock/ServerPlugins.

To use your existing configs, just mount to the following container directory mounts. Example podman run -v /path/to/config: /opt/Terraria/config -p 7777:7777 chinodesuuu/terraria-server:v4.3.25.

License

TShock is Copyright © Pyraxis under GPL 3.0.

This fork is licensed under Apache 2.0.