Production-ready Docker image for Hytale game servers with automatic download.
No official Hytale authentication required - server files are downloaded automatically. Supports both F2P and official licensed clients.
TG Group | TG Channel | Community Chat
No setup required! Server downloads automatically on first run.
One-liner:
docker run -d -p 5520:5520/udp -v ./data:/data --name hytale ghcr.io/sanasol/hytale-server-docker:latestOr with Docker Compose:
# compose.yaml
services:
hytale:
image: ghcr.io/sanasol/hytale-server-docker:latest
ports:
- "5520:5520/udp"
volumes:
- ./data:/data
tty: true
stdin_open: true
restart: unless-stoppeddocker compose up -dFirst run will automatically download:
HytaleServer.jar(~80MB)Assets.zip(~3.3GB)
git clone https://github.com/sanasol/hytale-server-docker.git
cd hytale-server-docker
docker compose up -dDownloads pre-patched server from F2P host. No authentication required.
environment:
HYTALE_F2P_DOWNLOAD: "true" # Default
HYTALE_F2P_DOWNLOAD_BASE: "https://download.sanasol.ws/download"Downloads from official Hytale servers. Requires device code authentication.
environment:
HYTALE_F2P_DOWNLOAD: "false"
HYTALE_AUTO_DOWNLOAD: "true"On first run, check logs for device code authentication URL.
| Variable | Default | Description |
|---|---|---|
HYTALE_F2P_DOWNLOAD |
true |
Enable F2P download (no auth required) |
HYTALE_AUTO_DOWNLOAD |
false |
Enable official Hytale download (requires auth) |
HYTALE_AUTH_DOMAIN |
auth.sanasol.ws |
F2P auth server domain |
HYTALE_AUTH_MODE |
authenticated |
Server auth mode |
HYTALE_DUAL_AUTH |
true |
Enable dual auth (official + F2P clients) |
| Variable | Default | Description |
|---|---|---|
HYTALE_TRUST_ALL_ISSUERS |
true |
Accept tokens from any issuer with embedded JWK |
HYTALE_TRUSTED_ISSUERS |
(empty) | Comma-separated allowlist when TRUST_ALL=false |
See Omni-Auth Documentation for implementation details.
| Variable | Default | Description |
|---|---|---|
HYTALE_F2P_DOWNLOAD_BASE |
https://download.sanasol.ws/download |
Base URL for downloads |
HYTALE_F2P_AUTO_UPDATE |
true |
Check for updates on restart (compares remote ETag) |
| Variable | Default | Description |
|---|---|---|
HYTALE_BIND |
0.0.0.0:5520 |
Server bind address |
JVM_XMS |
- | JVM min heap (e.g., 2G) |
JVM_XMX |
- | JVM max heap (e.g., 4G) |
services:
hytale:
image: ghcr.io/sanasol/hytale-server-docker:latest
environment:
# Download mode (F2P = default)
HYTALE_F2P_DOWNLOAD: "true"
# Auth configuration
HYTALE_AUTH_DOMAIN: "auth.sanasol.ws"
HYTALE_AUTH_MODE: "authenticated"
HYTALE_DUAL_AUTH: "true"
# Server settings
HYTALE_ACCEPT_EARLY_PLUGINS: "true"
# JVM memory
JVM_XMS: "2G"
JVM_XMX: "4G"
ports:
- "5520:5520/udp"
volumes:
- ./data:/data
- ./backups:/backups
tty: true
stdin_open: true
restart: unless-stoppedBy default, servers support both official Hytale clients and F2P clients simultaneously.
Connect directly using F2P Evo - no additional setup needed.
To allow players with official Hytale game licenses to connect, the server admin must run these commands in the server console:
/auth logout
/auth persistence Encrypted
/auth login device
Then complete the Hytale authentication process in your browser. This gives the server official Hytale tokens so it can authenticate licensed clients.
Note: This only needs to be done once per server. Tokens persist between restarts.
The server automatically:
- Downloads pre-patched JAR with dual auth support (or patches on first run)
- Auto-fetches F2P server tokens internally (no external scripts needed)
- Merges JWKS from both official and F2P backends
- Routes authentication based on token issuer
The server also supports Omni-Auth - clients that generate their own self-signed tokens with embedded JWK keys. This enables fully decentralized authentication without any central server.
By default (HYTALE_TRUST_ALL_ISSUERS=true), any Omni-Auth client is accepted. For stricter control:
environment:
HYTALE_TRUST_ALL_ISSUERS: "false"
HYTALE_TRUSTED_ISSUERS: "127.0.0.1,localhost,myauth.example.com"See Omni-Auth Documentation for implementation details.
Automatic mod management is supported:
environment:
HYTALE_CURSEFORGE_MODS: "MOD_ID1 MOD_ID2"
HYTALE_CURSEFORGE_API_KEY: "$2a$10$..."See docs/image/curseforge-mods.md for details.
Pterodactyl eggs for running Hytale servers on game panels.
| Egg | Description | Auth Required |
|---|---|---|
egg-hytale-server.json |
Recommended - Auto-downloads server | No |
egg-hytale-server-official.json |
Downloads from official Hytale | Yes (device code) |
Quick setup:
- Import egg in Admin Panel β Nests β Import Egg
- Create server with UDP port allocation (Hytale uses UDP)
- Start server - files download automatically
See pterodactyl/README.md for detailed documentation.
# Build for local use
./build.sh
# Build and push to GHCR
./build.sh --push
# Build with specific tag
./build.sh --push --tag v1.0.0Images are automatically built and pushed on:
- Push to
main/masterbranch - Version tags (
v*) - Manual workflow dispatch
Test without setting up your own server:
- Download F2P Evo
- Connect to:
ht.vboro.de:5720
Features:
- All cosmetics unlocked
- Cosmetics saved by username
- No password (anyone can use any username)
| Project | Description |
|---|---|
| hytale-auth-server | F2P Authentication server |
| F2P Evo | Game launcher with F2P support |
| Server List | Hytale server listing |
# Check logs
docker compose logs -f hytale
# Verify files downloaded
ls -la data/
ls -la data/server/- Check internet connectivity
- Verify download URL is accessible:
curl -I https://download.sanasol.ws/download/HytaleServer.jar
- Try forcing re-download:
environment: HYTALE_F2P_AUTO_UPDATE: "true"
- Check if JAR is patched:
docker exec hytale unzip -l /data/server/HytaleServer.jar | grep DualAuthContext
- Delete patch flag and restart:
rm data/server/.patched_dual_auth docker compose restart
pterodactyl/README.md- Pterodactyl Panel setupdocs/image/quickstart.md- Getting started with Dockerdocs/image/configuration.md- All environment variablesdocs/image/curseforge-mods.md- Mod managementdocs/image/troubleshooting.md- Common issuesdocs/image/server-files.md- Manual file provisioning
See LICENSE.
Based on Hybrowse/hytale-server-docker.