diff --git a/users/arion-compose.nix b/users/arion-compose.nix index 67c3816..d6b3f19 100644 --- a/users/arion-compose.nix +++ b/users/arion-compose.nix @@ -1,24 +1,25 @@ { pkgs, ... }: { project.name = "minecraft"; - services = { - mc = { - service.image = "itzg/minecraft-server:java17-jdk"; - service.volumes = [ "/home/podman/data:/data" ]; - service.dns = [ "8.8.8.8" ]; - service.ports = [ "25565:25565" ]; - service.environment = { - EULA = "true"; - TYPE = "FORGE"; - VERSION = "1.20.1"; - FORGE_VERSION = "47.2.20"; - MEMORY = "16G"; + services = { + mc = { + service.image = "itzg/minecraft-server:java17-jdk"; + service.volumes = [ "/home/podman/data:/data" ]; + service.dns = [ "8.8.8.8" ]; + service.network_mode = "host"; + service.environment = { + EULA = "true"; + TYPE = "FORGE"; + VERSION = "1.20.1"; + FORGE_VERSION = "47.2.20"; + 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";