setup nextcloud

This commit is contained in:
♥ Minnie ♥ 2023-12-19 09:21:33 +08:00
parent 8e457614c9
commit 38c07d5531
4 changed files with 29 additions and 1 deletions

View file

@ -5,6 +5,7 @@
./dashboard
./microbin
./multimedia
./nextcloud
];
}

View file

@ -0,0 +1,23 @@
{ ... }:
{
virtualisation.oci-containers.containers = {
nextcloud-aio-mastercontainer = {
autoStart = true;
image = "nextcloud/all-in-one:latest";
ports = [
"8484:8080/tcp" # AIO Interface
];
volumes = [
"nextcloud_aio_mastercontainer:/mnt/docker-aio-config"
"/var/run/docker.sock:/var/run/docker.sock:ro"
];
environment = {
NEXTCLOUD_DATADIR = "/srv/nextcloud";
APACHE_PORT = "11000";
APACHE_IP_BINDING = "0.0.0.0";
};
};
};
}

View file

@ -28,6 +28,11 @@
fsType = "ext4";
};
fileSystems."/srv/nextcloud" =
{ device = "/dev/disk/by-uuid/443fcb5a-b814-4d33-8cfb-93f6ff4aca11";
fsType = "ext4";
};
swapDevices = [ ];

View file

@ -6,7 +6,6 @@
./home-assistant
./httpd
./minecraft-server
./nextcloud
./traefik
];
}