Skip to content

Environment Variables

Complete reference of all environment variables.

Server Variables

VariableDefaultDescription
JAVA_XMS4GMinimum Java heap size
JAVA_XMX8GMaximum Java heap size
BIND_PORT5520Game server UDP port
AUTO_DOWNLOADtrueAuto-download game files on startup
SERVER_EXTRA_ARGS-Additional arguments for the server
TZUTCContainer timezone

Panel Variables

VariableDefaultDescription
PANEL_USERadminLogin username
PANEL_PASSadminLogin password
PANEL_PORT3000HTTP server port
JWT_SECRET(random)Secret key for JWT signing
MODTALE_API_KEY-API key for Modtale integration

Docker Variables

VariableDefaultDescription
CONTAINER_NAMEhytale-serverName of the game server container

Detailed Descriptions

JAVA_XMS / JAVA_XMX

Controls Java Virtual Machine memory allocation.

env
# Minimum 4GB, maximum 8GB
JAVA_XMS=4G
JAVA_XMX=8G

RAM Guidelines

PlayersRecommended
1-104G
10-206G
20-508G
50+12G+

AUTO_DOWNLOAD

When true, the server will automatically download HytaleServer.jar and Assets.zip from the official source on first startup.

env
# Disable for ARM64 or manual setup
AUTO_DOWNLOAD=false

ARM64

Auto-download is not available on ARM64 systems. Set to false and provide files manually.

SERVER_EXTRA_ARGS

Pass additional arguments to the Hytale server executable.

env
# Enable mods
SERVER_EXTRA_ARGS=--mods mods

# Multiple arguments
SERVER_EXTRA_ARGS=--mods mods --debug

TZ (Timezone)

Sets the container timezone for log timestamps.

env
TZ=America/New_York
TZ=Europe/London
TZ=Asia/Tokyo

Full timezone list

JWT_SECRET

Secret key used to sign JWT tokens. If not provided, a random key is generated on startup.

env
# Optional but recommended for persistent sessions
JWT_SECRET=your-very-long-random-string-here

INFO

If not set, a new random secret is generated each time the panel restarts, invalidating all existing sessions.

MODTALE_API_KEY

API key for Modtale mod repository integration.

env
MODTALE_API_KEY=your-modtale-api-key

When configured, enables:

  • Mod browsing in the panel
  • One-click mod installation
  • Update checking

Example .env File

env
# ===================
# Server Configuration
# ===================
JAVA_XMS=4G
JAVA_XMX=8G
BIND_PORT=5520
AUTO_DOWNLOAD=true
SERVER_EXTRA_ARGS=--mods mods
TZ=America/New_York

# ===================
# Panel Configuration
# ===================
PANEL_USER=myadmin
PANEL_PASS=supersecurepassword123
PANEL_PORT=3000
JWT_SECRET=change-this-to-a-random-string

# ===================
# Optional Integrations
# ===================
MODTALE_API_KEY=your-api-key

Not affiliated with Hypixel Studios or Hytale.