Minecraft server setup

This commit is contained in:
Sky Hearn 2024-03-09 16:52:21 +00:00
parent c289954dc3
commit d993a8535e
2 changed files with 7 additions and 8 deletions

View File

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

View File

@ -3,16 +3,15 @@
project.name = "minecraft"; project.name = "minecraft";
services = { services = {
mc = { mc = {
service.image = "itzg/minecraft-server:latest"; service.image = "itzg/minecraft-server:java17-jdk";
service.volumes = [ "/home/podman/data:/data" ]; service.volumes = [ "/home/podman/data:/data" ];
service.ports = [ "25565:25565" ]; service.dns = [ "8.8.8.8" ];
service.network_mode = "host";
service.environment = { service.environment = {
EULA = "true"; EULA = "true";
MOD_PLATFORM = "AUTO_CURSEFORGE"; TYPE = "FORGE";
# https://stackoverflow.com/questions/49897503/ VERSION = "1.20.1";
CF_API_KEY = "$$2a$$10$$BiefeMHCHbPFjXkIwpHk/.LvfbKaohRF7HcB3PF8oJtVAI/PfMpwe"; # free API key <3 FORGE_VERSION = "47.2.20";
CF_FORCE_SYNCHRONIZE = "true";
CF_PAGE_URL = "https://www.curseforge.com/minecraft/modpacks/valhelsia-6/files/5135030";
MEMORY = "16G"; MEMORY = "16G";
}; };
}; };