From 01876a6e84622b489bf28f1e558f3f3889701d53 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 8 Nov 2024 11:06:23 +0100 Subject: [PATCH] chore(musare): Properly setup db containers network config --- services/musare/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/services/musare/default.nix b/services/musare/default.nix index 324d24f..faba6c7 100644 --- a/services/musare/default.nix +++ b/services/musare/default.nix @@ -92,7 +92,13 @@ in { "clientId": "${config.sops.placeholder."musare/SPOTIFY_CLIENT_ID"}", "clientSecret": "${config.sops.placeholder."musare/SPOTIFY_CLIENT_SECRET"}" } - } + }, + "mongo": { + "host": "musare-mongo" + }, + "redis": { + "url": "redis://musare-redis:6379/0" + } } ''; }; @@ -132,7 +138,7 @@ in { ]; dependsOn = ["mongo" "redis"]; }; - mongo = { + musare-mongo = { image = "docker.io/mongo:latest"; autoStart = true; volumes = [ @@ -143,7 +149,7 @@ in { config.sops.templates."musare/.env".path ]; }; - redis = { + musare-redis = { image = "docker.io/redis:7"; autoStart = true; cmd = ["--notify-keyspace-events" "Ex" "--requirepass" "meh_not_important" "--appendonly" "yes"];