From 2eaeb97a0f1efb38097e9441c07e8a59c4a3b80f Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 6 Feb 2024 16:20:54 -0800 Subject: [PATCH] Forget the volumes... --- nextcloud-container.nix | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index 02af502..0dce4c4 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -133,29 +133,15 @@ in { service = { restart = "always"; volumes = [ - "nextcloud-home:/var/lib/nextcloud/home" - "nextcloud-data:/var/lib/nextcloud/data" + "${cfg.state-directory}/nextcloud:/var/lib/nextcloud/home" + "${cfg.store-directory}:/var/lib/nextcloud/data" "${hostSecrets.nextcloudAdminPasswd.target-file}:/run/nextcloud/admin.passwd:ro,Z" - "postgres-data:/var/lib/postgresql" + "${cfg.state-directory}/postgresql:/var/lib/postgresql" ]; ports = [ "${toString cfg.port}:80" ]; }; }; }; - docker-compose.volumes = { - postgres-data = { - driver = "local"; - driver_opts.device = "${cfg.state-directory}/postgresql"; - }; - nextcloud-data = { - driver = "local"; - driver_opts.device = cfg.store-directory; - }; - nextcloud-home = { - driver = "local"; - driver_opts.device = "${cfg.state-directory}/nextcloud"; - }; - }; }; in { imports = [ image ]; }; };