revert to stable apache instead of custom image
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
7be48fca2a
commit
6aa2d208df
@ -6,28 +6,36 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
nextcloud-image = import ./nextcloud-image { inherit pkgs; };
|
# nextcloud-image = import ./nextcloud-image { inherit pkgs; };
|
||||||
|
nextcloud-base = {
|
||||||
|
image = "nextcloud:stable-apache";
|
||||||
|
hostname = "nextcloud";
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
extraOptions = [
|
||||||
|
"--restart=unless-stopped"
|
||||||
|
"--network=haproxy-net"
|
||||||
|
"--network=postgres-net"
|
||||||
|
"--network=nextcloud_default"
|
||||||
|
];
|
||||||
|
dependsOn = [ "redis" ];
|
||||||
|
environmentFiles = [ config.sops.secrets."docker/nextcloud".path ];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
nextcloud = {
|
nextcloud = nextcloud-base // {
|
||||||
image = "nextcloud-custom:latest";
|
|
||||||
imageFile = nextcloud-image;
|
|
||||||
hostname = "nextcloud";
|
|
||||||
ports = [ "9999:80" ];
|
ports = [ "9999:80" ];
|
||||||
volumes = [
|
};
|
||||||
"/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:z"
|
nextcloud-cron = nextcloud-base // {
|
||||||
"/ZFS/ZFS-primary/nextcloud/nc_php:/usr/local/etc/php"
|
entrypoint = "/cron.sh";
|
||||||
"/ZFS/ZFS-primary/nextcloud/nc_prehooks:/docker-entrypoint-hooks.d/before-starting"
|
dependsOn = [
|
||||||
|
"redis"
|
||||||
|
"nextcloud"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
|
||||||
"--restart=unless-stopped"
|
|
||||||
"--network=haproxy-net"
|
|
||||||
"--network=postgres-net"
|
|
||||||
"--network=nextcloud_default"
|
|
||||||
];
|
|
||||||
dependsOn = [ "redis" ];
|
|
||||||
environmentFiles = [ config.sops.secrets."docker/nextcloud".path ];
|
|
||||||
};
|
};
|
||||||
redis = {
|
redis = {
|
||||||
image = "redis:latest";
|
image = "redis:latest";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user