Back to Templates
Terraria
Terraria
GameCP OfficialSandbox
Verified

Terraria

Dedicated Server Template

Dig, fight, explore, build! Nothing is impossible in this action-packed adventure game.

v20
2/25/2026

Terraria Game Server Hosting

Deploy and manage your own Terraria dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Terraria server administration simple and reliable.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Terraria?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
1.5 GB(max 4 GB)
Storage
2 GB

+32 MiB per player

Recommended Players

8
Recommended
Min: 1Max: 16

Performance Tiers

Economy

Small world, 1-4 players

RAM1 GB
CPU Shares512
Recommended

Standard

Medium world, 4-8 players

RAM2 GB
CPU Shares1024

Pro

Large world, 8-16 players

RAM3 GB
CPU Shares2048

Startup Command

#!/bin/bashBash shell with full features

Default

Default startup command

Default

Environment Variables

SERVER_NAME

Required

Server Name

Server name displayed in the server browser

Default
(empty)

MAX_PLAYERS

Required

Max Players

Maximum number of concurrent players

Default
8

SERVER_MOTD

Server MOTD

Message of the Day displayed when players join.

Default
Welcome!

WORLD_NAME

Required

World Name

The name for the world file. Changing this loads a different world.

Default
world

WORLD_SIZE

Required

World Size

Size of the world when auto-created. Only applies to new worlds.

Default
1

WORLD_DIFFICULTY

Required

Difficulty

World difficulty level. Only applies to new worlds.

Default
3

WORLD_SEED

World Seed

Seed for world generation. Leave empty for a random seed. Only applies to new worlds.

Default
(empty)

NPCSTREAM

NPC Stream Distance

NPC streaming distance. Lower values reduce skipping but increase bandwidth. 0 disables streaming.

Default
0

PASSWORD

Server Password

Password required to join the server. Leave empty for no password.

Default
(empty)

TERRARIA_VERSION

Required

Terraria Version

Server version to install. Use 'latest' or a specific version number (e.g. 1.4.4.9 or 1449).

Default
latest

Lifecycle Scripts

Installation Script

Installation script

before installghcr.io/ptero-eggs/installers:debian

Configuration Files

Server Config

Configuration file for Terraria Vanilla (properties format)

//serverconfig.txtproperties
0 fields

Container Configuration

Docker Image

ghcr.io/ptero-eggs/yolks:debian

Technical Profile

Template ID

terraria

Author

GameCP Team

Last Updated

February 25, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

3

Source

gamecp

originalAuthor

iamkubi@gmail.com

Imported: 2/9/2026, 12:07:03 AM