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,6 +92,12 @@ 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"];