Terraria

Terraria runs over TCP and persists its config and world files under /opt/terraria/config. Swarm Hosts waits for the TCP listener to open before promoting the deployment to Running.

The server image wraps the community-maintained PassiveLemon Terraria Docker image, which runs the Terraria dedicated server with persistent world and config storage.

Basics you should know

  • Default protocol: TCP
  • Typical port: 7777/tcp
  • Persistent data: /opt/terraria/config
  • Worlds: /opt/terraria/config/Worlds

1) Open Launch. 2) Choose Terraria. 3) Leave AUTOCREATE=1 for a new server so Terraria creates the first world. 4) Set WORLDNAME, MAXPLAYERS, optional PASSWORD, and MOTD. 5) Leave SECURE=1 unless you have a specific reason to allow cheats. 6) Click Launch.

If you already uploaded a world file into /opt/terraria/config/Worlds, you can disable auto-create and set WORLDNAME to the uploaded world's name.

Common paths

  • World files: /opt/terraria/config/Worlds
  • Server config: /opt/terraria/config/serverconfig.txt
  • Logs: /opt/terraria/config/Logs

Player connection info

Players join with the swarm host public IP and assigned TCP port:

<HOST_PUBLIC_IP>:<PORT>