From 3c01b94156e8eb2fcaa2876d32cbebf5e8b4833a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sun, 12 Jul 2020 18:36:52 +0100 Subject: [PATCH] Prefix docker volumes with application names This is important so that `docker volume ls` gives useful information. --- etc/nixos/services/nextcloud.nix | 6 +++--- etc/nixos/services/tlaternet.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/nixos/services/nextcloud.nix b/etc/nixos/services/nextcloud.nix index 7014621..f5ed8e4 100644 --- a/etc/nixos/services/nextcloud.nix +++ b/etc/nixos/services/nextcloud.nix @@ -6,9 +6,9 @@ image = "nextcloud:fpm-alpine"; dependsOn = ["docker-nextcloud-postgres.service"]; volumes = [ - "apps:/var/www/html/custom_apps" - "config:/var/www/html/config" - "data:/var/www/html/data" + "nextcloud-apps:/var/www/html/custom_apps" + "nextcloud-config:/var/www/html/config" + "nextcloud-data:/var/www/html/data" ]; environment = { POSTGRES_DB = "nextcloud"; diff --git a/etc/nixos/services/tlaternet.nix b/etc/nixos/services/tlaternet.nix index 7292e86..1178290 100644 --- a/etc/nixos/services/tlaternet.nix +++ b/etc/nixos/services/tlaternet.nix @@ -28,7 +28,7 @@ in }; }; volumes = [ - "mail:/srv/mail" + "tlaternet-mail:/srv/mail" ]; environment = { VIRTUAL_HOST = "tlater.net,www.tlater.net";