Correct volumes for redis and cron

This commit is contained in:
Andreas Zweili 2024-01-15 16:07:21 +01:00
parent 58a4e4f937
commit 182a743157
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,8 @@ in {
environmentFiles = [ config.age.secrets.nextcloudEnv.path ];
entrypoint = "/cron.sh";
dependsOn = [ "redis" ];
volumes = [ "/etc/localtime:/etc/localtime:ro" ];
volumes =
[ "/etc/localtime:/etc/localtime:ro" "${volumePath}:/var/www/html" ];
extraOptions = [
"--add-host=host.docker.internal:host-gateway"
"--net=nextcloud"
@ -119,8 +120,7 @@ in {
containers."redis" = {
image = "redis:alpine";
autoStart = true;
volumes =
[ "/etc/localtime:/etc/localtime:ro" "${volumePath}:/var/www/html" ];
volumes = [ "/etc/localtime:/etc/localtime:ro" ];
extraOptions = [ "--net=${networkName}" "--log-opt=tag='redis'" ];
};
};