StruxaEggs Explorer

Team Fortress 2

Game

Team Fortress 2 is a team-based multiplayer first-person shooter developed by Valve. Players join one of two teams and choose from nine character classes, each with distinct weapons and abilities, across game modes such as Capture the Flag, Control Point, Payload, and King of the Hill.

Author: mark@bytesizelabs.com.auSource: pterodactyl/game-eggsUpdated: 7/24/2026

Startup Command

./srcds_run -game {{SRCDS_GAME}} -strictportbind -ip 0.0.0.0 -port {{SERVER_PORT}} +clientport {{SRCDS_CPORT}} +tv_port {{SRCDS_STV}} +map {{SRCDS_MAP}} +servercfgfile server.cfg -maxplayers {{MAX_PLAYERS}} +sv_setsteamaccount {{STEAM_GSLT}}

Docker Images

LabelImage
ghcr.io/ptero-eggs/games:sourceghcr.io/ptero-eggs/games:source

Environment Variables

NameVariableDefaultRules
Server Name
The name your server will show up as in the in-game server browser.
HOSTNAMEA Pterodactyl Hosted TF2 Serverrequired|string|max:64
Default Map
The map your server loads on startup. Popular choices: ctf_2fort, cp_dustbowl, pl_badwater, koth_harvest_event.
SRCDS_MAPctf_2fortrequired|string|max:25
Max Players
The maximum number of players allowed to join your server at once.
MAX_PLAYERS24required|integer|max:128
Server Password
If set, players must enter this password to join your server. Leave blank to let anyone join.
SERVER_PASSWORDnonenullable|string|max:32
Admin (RCON) Password
Password used by remote admin tools to manage your server (change maps, kick players, etc). Leave blank to disable remote admin access.
RCON_PASSWORDnonenullable|string|max:32
Game Server Login Token (GSLT)
A free token from Valve that makes your server show up in the public server browser. Get one at https://steamcommunity.com/dev/managegameservers (choose "Team Fortress 2"). Leave blank to run a private server that only people you directly invite can join.
STEAM_GSLTnonenullable|string|max:32
Client Port
A second network port the game uses alongside the main server port. Additional Allocation required - set this to match a secondary port you've allocated to this server.
SRCDS_CPORT27005required|integer|between:1025,65535
SourceTV Port
The port used for SourceTV, a feature that lets people spectate or record matches on your server. Additional Allocation required - set this to match a secondary port you've allocated to this server.
SRCDS_STV27020required|integer|between:1025,65535
Auto Update
Automatically update the server to the latest version every time it restarts.
AUTO_UPDATE1required|boolean
Game ID
Internal Steam identifier used to download and update the server. Do not change.
SRCDS_APPID232250required|string|in:232250
Game Folder
Internal folder name the server software runs from. Do not change.
SRCDS_GAMEtfrequired|string|max:20

Features

steam_disk_space