Solidfy container startup order

This commit is contained in:
Nathan McCarty 2023-04-10 12:01:04 -04:00
parent 1d86ad4f17
commit a22be56439
No known key found for this signature in database
1 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,7 @@
};
ports = [ "8181:8181" ];
volumes = [ "/var/lib/tautulli:/config" ];
dependsOn = [ "plex" ];
};
# Configure sabnzbd
"sabnzbd" = {
@ -129,6 +130,7 @@
"/mnt/plex:/media"
"/mnt/scratch/sabnzbd/download-complete:/downloads"
];
dependsOn = [ "sabnzbd" "plex" ];
};
# Configure radarr
"radarr" = {
@ -144,6 +146,12 @@
"/mnt/plex:/media"
"/mnt/scratch/sabnzbd/download-complete:/downloads"
];
dependsOn = [ "sabnzbd" "plex" ];
};
};
# Make the containers depend on their mounts
systemd.services = {
"podman-plex" = { requires = [ "mnt-plex.mount" ]; };
"podman-sabnzbd" = { requires = [ "mnt-scratch.mount" ]; };
};
}