nix_config/machines/cj/unifi.nix
2024-03-28 13:14:58 -04:00

20 lines
387 B
Nix

{ serverIP, serverIP6 } : {
image = "jacobalberty/unifi:v8.1";
ports = [
"8080:8080"
"8443:8443"
"3478:3478/udp"
];
environment = {
TZ = "America/New_York";
};
volumes = [
"/serverdata/unifi:/unifi"
];
extraOptions = [
"--cap-add=NET_ADMIN"
"--network=host"
#"--no-hosts" # do not populate internal /etc/hosts with container host's
];
}