Correct volumes for redis and cron
This commit is contained in:
parent
58a4e4f937
commit
182a743157
|
@ -109,7 +109,8 @@ in {
|
||||||
environmentFiles = [ config.age.secrets.nextcloudEnv.path ];
|
environmentFiles = [ config.age.secrets.nextcloudEnv.path ];
|
||||||
entrypoint = "/cron.sh";
|
entrypoint = "/cron.sh";
|
||||||
dependsOn = [ "redis" ];
|
dependsOn = [ "redis" ];
|
||||||
volumes = [ "/etc/localtime:/etc/localtime:ro" ];
|
volumes =
|
||||||
|
[ "/etc/localtime:/etc/localtime:ro" "${volumePath}:/var/www/html" ];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
"--add-host=host.docker.internal:host-gateway"
|
||||||
"--net=nextcloud"
|
"--net=nextcloud"
|
||||||
|
@ -119,8 +120,7 @@ in {
|
||||||
containers."redis" = {
|
containers."redis" = {
|
||||||
image = "redis:alpine";
|
image = "redis:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
volumes =
|
volumes = [ "/etc/localtime:/etc/localtime:ro" ];
|
||||||
[ "/etc/localtime:/etc/localtime:ro" "${volumePath}:/var/www/html" ];
|
|
||||||
extraOptions = [ "--net=${networkName}" "--log-opt=tag='redis'" ];
|
extraOptions = [ "--net=${networkName}" "--log-opt=tag='redis'" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue