restructure container directory
This commit is contained in:
parent
4527811bea
commit
7b9ac7400c
11 changed files with 28 additions and 23 deletions
24
nixos/lavender/containers/pihole/default.nix
Normal file
24
nixos/lavender/containers/pihole/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Pi-hole
|
||||
virtualisation.oci-containers.containers."pihole" = {
|
||||
autoStart = true;
|
||||
image = "pihole/pihole:latest";
|
||||
volumes = [
|
||||
"/srv/containers/pihole/etc-pihole:/etc/pihole"
|
||||
"/srv/containers/pihole/etc-dnsmasq.d:/etc/dnsmasq.d"
|
||||
"/srv/containers/pihole/secrets:/secrets"
|
||||
];
|
||||
ports = [
|
||||
"53:53/tcp"
|
||||
"53:53/udp"
|
||||
"8181:80/tcp"
|
||||
];
|
||||
environment = {
|
||||
WEBPASSWORD_FILE = "/secrets/admin-password";
|
||||
DNSMASQ_LISTENING = "all";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue