Skip to content

Commit

Permalink
adding minecraft to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jul 4, 2024
1 parent 24a4078 commit 12767fc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions modules/server/container/kolyma-3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,28 @@
# / / / / /_/ / /_/ / / / / /__/ / / /_/ / __/ /_
# /_/ /_/\____/\__, /_/ /_/\___/_/ \__,_/_/ \__/
# /____/
# minecraft = {
# image = "itzg/minecraft-server:latest";
# volumes = [
# "/srv/minecraft:/data"
# ];
# ports = [
# "25565:25565"
# "25656:25656"
# ];
# environment = {
# TYPE = "PAPER";
# EULA = "TRUE";
# MEMORY = "12G";
# };
# };
minecraft = {
image = "itzg/minecraft-server:latest";
volumes = [
"/srv/minecraft:/data"
];
ports = [
"25565:25565"
"25656:25656"
];
environment = {
TYPE = "PAPER";
EULA = "TRUE";
MEMORY = "12G";
};
};
};

# Necessary firewall rules for docker containers
networking.firewall.allowedUDPPorts = [
# 25565 # Minecraft
25565 # Minecraft
];
networking.firewall.allowedTCPPorts = [
# 25565 # Minecraft
25565 # Minecraft
];
}

0 comments on commit 12767fc

Please sign in to comment.