chore(musare): Properly setup db containers network config

This commit is contained in:
GaspardCulis 2024-11-08 11:06:23 +01:00
parent c73204ce61
commit 01876a6e84

View file

@ -92,7 +92,13 @@ in {
"clientId": "${config.sops.placeholder."musare/SPOTIFY_CLIENT_ID"}", "clientId": "${config.sops.placeholder."musare/SPOTIFY_CLIENT_ID"}",
"clientSecret": "${config.sops.placeholder."musare/SPOTIFY_CLIENT_SECRET"}" "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"]; dependsOn = ["mongo" "redis"];
}; };
mongo = { musare-mongo = {
image = "docker.io/mongo:latest"; image = "docker.io/mongo:latest";
autoStart = true; autoStart = true;
volumes = [ volumes = [
@ -143,7 +149,7 @@ in {
config.sops.templates."musare/.env".path config.sops.templates."musare/.env".path
]; ];
}; };
redis = { musare-redis = {
image = "docker.io/redis:7"; image = "docker.io/redis:7";
autoStart = true; autoStart = true;
cmd = ["--notify-keyspace-events" "Ex" "--requirepass" "meh_not_important" "--appendonly" "yes"]; cmd = ["--notify-keyspace-events" "Ex" "--requirepass" "meh_not_important" "--appendonly" "yes"];