new minecraft server!

This commit is contained in:
Sky Hearn 2024-04-25 20:34:23 +00:00
parent 22f5724b8e
commit ad922e65fd
2 changed files with 16 additions and 3 deletions

View File

@ -139,7 +139,7 @@
# List services that you want to enable: # List services that you want to enable:
networking.firewall.allowedTCPPorts = [ 80 443 22 25565 ]; networking.firewall.allowedTCPPorts = [ 80 443 22 25565, 25566 ];
services.nginx = { services.nginx = {
enable = true; enable = true;

View File

@ -6,14 +6,27 @@
service.image = "itzg/minecraft-server:java17-jdk"; service.image = "itzg/minecraft-server:java17-jdk";
service.volumes = [ "/home/podman/data:/data" ]; service.volumes = [ "/home/podman/data:/data" ];
service.dns = [ "8.8.8.8" ]; service.dns = [ "8.8.8.8" ];
service.network_mode = "host"; service.ports = [ "25565:25565" ];
service.environment = { service.environment = {
EULA = "true"; EULA = "true";
TYPE = "FORGE"; TYPE = "FORGE";
VERSION = "1.20.1"; VERSION = "1.20.1";
FORGE_VERSION = "47.2.20"; FORGE_VERSION = "47.2.20";
MEMORY = "16G"; MEMORY = "16G";
}; };
ftb = {
service.image = "itzg/minecraft-server:java8-multiarch";
service.volumes = [ "/home/podman/ftb/data:/data" ];
service.dns = [ "8.8.8.8" ];
service.ports = [ "25566:25565" ]
service.network_mode = "host";
service.environment = {
EULA = "true";
TYPE = "FORGE";
VERSION = "1.7.10";
FORGE_VERSION = "10.13.2.1291";
MEMORY = "16G";
};
}; };
}; };
} }