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

40 lines
889 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/config.txt:/jmb/config/config.txt:ro"
"${rwPath}/be/playlists:/jmb/config/playlists: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/config.txt:/jmb/config/config.txt:ro"
"${rwPath}/br/playlists:/jmb/config/playlists:rw"
];
networks = ["proxy_net"];
};
2024-01-14 02:33:12 -05:00
};
};
}