mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
docker navi
This commit is contained in:
parent
90f105aac8
commit
a1e2e69eb2
1 changed files with 20 additions and 0 deletions
20
modules/containers/docker/navidrome.nix
Normal file
20
modules/containers/docker/navidrome.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
navidrome = {
|
||||||
|
image = "deluan/navidrome:latest";
|
||||||
|
user = "1000:1000";
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/navidrome:/data"
|
||||||
|
"/media/storage/media/music:/music:ro"
|
||||||
|
];
|
||||||
|
ports = [ "4533:4533" ];
|
||||||
|
environment = {
|
||||||
|
ND_MUSICFOLDER = "/music";
|
||||||
|
ND_DATAFOLDER = "/data";
|
||||||
|
ND_CACHEFOLDER = "/data/cache";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue