nixos-configs/devices/nos/modules/docker/music/jbots/compose.nix
matt1432 59d2205e7a
All checks were successful
Discord / discord commits (push) Has been skipped
fix(docker): add required changes to make every container work
2024-07-24 20:52:32 -04:00

39 lines
889 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/music/jbots";
in {
khepri.compositions."jbots" = {
networks.proxy_net = {external = true;};
services = {
"musicbot_be" = {
containerName = "be";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
volumes = [
"${rwPath}/be/config.txt:/jmb/config/config.txt:ro"
"${rwPath}/be/playlists:/jmb/config/playlists:rw"
];
networks = ["proxy_net"];
};
"musicbot_br" = {
containerName = "br";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
volumes = [
"${rwPath}/br/config.txt:/jmb/config/config.txt:ro"
"${rwPath}/br/playlists:/jmb/config/playlists:rw"
];
networks = ["proxy_net"];
};
};
};
}