add nextcloud and postgres to docker
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
38
systems/palatine-hill/docker/nextcloud.nix
Normal file
38
systems/palatine-hill/docker/nextcloud.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
nextcloud-image = import ./nextcloud-image.nix;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
nextcloud = {
|
||||
image = "nextcloud-custom:latest";
|
||||
imageFile = nextcloud-image;
|
||||
hostname = "nextcloud";
|
||||
ports = [
|
||||
"9999:80"
|
||||
|
||||
];
|
||||
restart = "unless-stopped";
|
||||
volumes = [
|
||||
"/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:z"
|
||||
"/ZFS/ZFS-primary/nextcloud/nc_php:/usr/local/etc/php"
|
||||
"/ZFS/ZFS-primary/nextcloud/nc_prehooks:/docker-entrypoint-hooks.d/before-starting"
|
||||
];
|
||||
extraOption = [
|
||||
"--network=haproxy-net"
|
||||
"--network=postgres-net"
|
||||
"--network=nextcloud_default"
|
||||
];
|
||||
dependsOn = [
|
||||
|
||||
"redis"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user