nixos-configs/devices/nos/modules/docker/music/jbots/compose.nix

38 lines
725 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/music/jbots";
in {
khepri.compositions."jbots" = {
networks.proxy_net = {external = true;};
2024-01-14 02:33:12 -05:00
services = {
"musicbot_be" = {
containerName = "be";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
volumes = [
"${rwPath}/be:/jmb/config:rw"
];
networks = ["proxy_net"];
};
2024-01-14 02:33:12 -05:00
"musicbot_br" = {
containerName = "br";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
2024-01-14 02:33:12 -05:00
volumes = [
"${rwPath}/br:/jmb/config:rw"
];
networks = ["proxy_net"];
};
2024-01-14 02:33:12 -05:00
};
};
}