Add palworld server

This commit is contained in:
batteredbunny 2024-06-15 23:41:21 +03:00
parent 43f75cb057
commit 0af1424ea7
3 changed files with 39 additions and 0 deletions

View file

@ -852,6 +852,10 @@
# coturn
3478
5349
# palworld
27015
settings.ports.palworld
];
allowedTCPPorts = [
config.services.blocky.settings.ports.dns

View file

@ -4,6 +4,40 @@
virtualisation.oci-containers = {
backend = "docker";
containers = {
palworld = {
autoStart = true;
image = "thijsvanloef/palworld-server-docker:latest";
ports = [
"${toString settings.ports.palworld}:${toString settings.ports.palworld}/udp" # server
"27015:27015/udp" # QUERY_PORT for steam server? Whatever that is, has to be exposed
# "8212:8212/tcp" # Uncomment this line if REST API is enabled
];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Tallinn";
PORT = toString settings.ports.palworld;
PLAYERS = "16";
MULTITHREADING = "true";
RCON_ENABLED = "true";
RCON_PORT = "25575";
COMMUNITY = "false"; # Change this to "true" if you want the server to show up in community servers tab
SERVER_NAME = "catnip.ee server";
SERVER_DESCRIPTION = "meow meow meow";
# Inside /etc/secrets/palworld.env
# ADMIN_PASSWORD = "adminPasswordHere";
# SERVER_PASSWORD = "worldofpals";
};
environmentFiles = [
"/etc/secrets/palworld.env"
];
volumes = [
"${settings.server_configs_home}/palworld:/palworld"
];
};
epicgames-freegames-node = {
autoStart = true;
image = "ghcr.io/claabs/epicgames-freegames-node:latest";

View file

@ -7,6 +7,7 @@
server_configs_home = "/home/owo/Documents/server_configs";
ports = {
palworld = 8211;
confess = 8011;
matrix-sliding-sync = 8010;
mautrix-telegram = 8009;