Back to Templates
GameCP OfficialSurvival
Verified

Valheim

A brutal exploration and survival game for 1-10 players, set in a procedurally-generated purgatory inspired by viking culture. Battle, build, and conquer your way to a saga worthy of Odin’s patronage!

v2
2/8/2026

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
${SERVER_NAME}

MAX_PLAYERS

RequiredRead Only

Max Players

Maximum number of concurrent players

Default
${MAX_PLAYERS}

PASSWORD

Server Password

Server password. Minimum 5 characters required by Valheim.

Default
(empty)

WORLD

Required

World Name

World save name. Changing this loads a different world.

Default
Dedicated

PUBLIC_SERVER

Public Server

List server in the public server browser. Disable to make join-by-IP only.

Default
true

ENABLE_CROSSPLAY

Enable Crossplay

Enable crossplay support for Xbox/PC players.

Default
1

AUTO_UPDATE

Auto Update

Automatically update the server on startup.

Default
true

BACKUP_INTERVAL

Save Interval

World save interval in seconds. Default: 1800 (30 minutes).

Default
1800

BACKUP_COUNT

Backup Count

Number of automatic backups to keep. Default: 4.

Default
4

BACKUP_SHORTTIME

Short Backup Interval

Interval between the first automatic backup in seconds. Default: 7200 (2 hours).

Default
7200

BACKUP_LONGTIME

Long Backup Interval

Interval between subsequent automatic backups in seconds. Default: 43200 (12 hours).

Default
43200

LD_LIBRARY_PATH

RequiredRead Only

LD Library Path

Required to load server libraries.

Default
./linux64

STOP

RequiredRead Only

Shutdown Command

Graceful shutdown command.

Default
kill -2 $!; wait;

CONSOLE_FILTER

Read Only

Console Filter

Sed filter to clean up console output noise.

Default Value

SRCDS_BETAID

Beta Branch

Steam beta branch name. Leave blank for stable.

Default
(empty)

SRCDS_BETAPASS

Beta Password

Password for beta branch access. Leave blank if not required.

Default
(empty)

STEAM_USER

Steam Username

Steam username for authentication.

Default
${STEAM_USER}

STEAM_PASS

Steam Password

Steam password for authentication.

Default
${STEAM_PASS}

STEAM_AUTH

Steam Auth Code

Steam Guard authentication code (optional).

Default
(empty)

EXTRA_FLAGS

Extra SteamCMD Flags

Additional SteamCMD flags.

Default
(empty)

Container Configuration

Docker Image

ghcr.io/ptero-eggs/games:valheim

Technical Profile

Template ID

valheim

Author

GameCP Team

Last Updated

February 8, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

2

Source

gamecp

Imported: 2/8/2026, 10:15:00 PM