add minecraft
This commit is contained in:
parent
a3efd1c5b6
commit
2204edf2bd
|
@ -21,6 +21,9 @@
|
|||
# Documents & Files
|
||||
./qbittorrent
|
||||
|
||||
# Game servers
|
||||
./minecraft
|
||||
|
||||
# Reverse proxy
|
||||
./traefik
|
||||
];
|
||||
|
|
16
nixos/lavender/containers/minecraft/default.nix
Normal file
16
nixos/lavender/containers/minecraft/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue