add minecraft

This commit is contained in:
♥ Minnie ♥ 2023-05-27 00:25:55 +08:00
parent a3efd1c5b6
commit 2204edf2bd
2 changed files with 19 additions and 0 deletions

View file

@ -21,6 +21,9 @@
# Documents & Files # Documents & Files
./qbittorrent ./qbittorrent
# Game servers
./minecraft
# Reverse proxy # Reverse proxy
./traefik ./traefik
]; ];

View file

@ -0,0 +1,16 @@
{ ... }:
{
# Minecraft
virtualisation.oci-containers.containers."minecraft" = {
autoStart = true;
image = "marctv/minecraft-papermc-server:latest";
volumes = [
"/srv/containers/minecraft:/data"
];
ports = [ "25565:25565" ];
environment = {
MEMORYSIZE = "1G";
};
};
}