Hytale server Docker image.
services:
server:
container_name: server
image: ghcr.io/loat-dev/hytale-server:latest
pull_policy: daily
tty: true
stdin_open: true
ports:
# Server port
- "5520:5520/udp"
volumes:
- ./data:/data
- ./backup:/backupNote
The following authentication process is far from perfect, but currently there is no other way of authenticating the server automatically. If Hytale provides a way of authenticating the server automatically in the future, I will update the instructions and the process accordingly.
First start the server using:
docker compose up
After that, authenticate the downloader, using the link in the console (You only have to do this once). The server should now start downloading the server files. After that the server should be started automatically.
Warning
Files will be downloaded even if it doesn't seem to look like it. Just give it some time. This takes some minutes.
You may see a message like this in the console:
No server tokens configured. Use /auth login to authenticate.
If you are still connected to the container, press d to detach. Now reattach the container using:
docker attach server
You should now be able to enter commands to the server. Type the following command to authenticate the server:
/auth login device
Follow the authentication instructions similar to the downloader.
Now your server is authenticated and you should be able to join. To persist the credentials, so that you dont have to authenticate everytime on startup use:
/auth persistence Encrypted
To detach again, press CTRL+p and then CTRL+q.
You can also look up the Hytale Server Manual for more information.
Server files are stored in this directory.
Backup files are stored in this directory.
The default server port.
Changes the default server port inside the container.
- Default:
5520
Set the minimum amount of memory to allocate to the server.
- Default:
"1G"
Set the maximum amount of memory to allocate to the server.
- Default:
"4G"
Enables downloading the server files on startup. If this is enabled, the server will download the latest server files on startup. The server will still download the files if either the HytaleServer.jar or assets.zip files are missing.
- Default:
false
This feature is not supported yet.
- Default:
true
Enables the build-in backup feature.
- Default:
true
How often to create a backup.
- Default:
30
How many backups to keep.
- Default:
5
Provide additional arguments to the server after all the above arguments.
- Default:
""