Adding Unifi, disabling xcp-ng.
This commit is contained in:
parent
d46fdd770b
commit
563d278222
1 changed files with 40 additions and 17 deletions
|
@ -238,27 +238,50 @@ in
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers = {
|
containers = {
|
||||||
# Xen-orchestra container
|
# Unifi Controller
|
||||||
xen-orchestra = {
|
unifi = {
|
||||||
image = "docker.io/ronivay/xen-orchestra:5.140.1";
|
image = "ghcr.io/goofball222/unifi:8.1.113";
|
||||||
ports = [ "80:80" ];
|
ports = [
|
||||||
|
"3478:3478/udp" # STUN
|
||||||
|
"8080:8080" # inform controller
|
||||||
|
"8443:8443" # https
|
||||||
|
"8880:8880" # HTTP portal redirect
|
||||||
|
"8843:8843" # HTTPS portal redirect
|
||||||
|
];
|
||||||
|
autoStart = true;
|
||||||
volumes = [
|
volumes = [
|
||||||
"/eru/containers/volumes/xo-data:/var/lib/xo-server"
|
"/eru/containers/volumes/unifi/cert:/usr/lib/unifi/cert"
|
||||||
"/eru/containers/volumes/xo-redis-data:/var/lib/redis"
|
"/eru/containers/volumes/unifi/data:/usr/lib/unifi/data"
|
||||||
"/eru/xen-backups:/backups"
|
"/eru/containers/volumes/logs:/usr/lib/unifi/logs"
|
||||||
];
|
];
|
||||||
environment = {
|
environment = {
|
||||||
HTTP_PORT = "80";
|
TZ = "America/Chicago";
|
||||||
|
RUNAS_UID0 = "false";
|
||||||
|
PGID = "102";
|
||||||
|
PUID = "999";
|
||||||
};
|
};
|
||||||
extraOptions = [
|
|
||||||
"--device=/dev/fuse:/dev/fuse"
|
|
||||||
"--device=/dev/loop-control:/dev/loop-control"
|
|
||||||
"--device=/dev/loop0:/dev/loop0"
|
|
||||||
"--device=/dev/loop0:/dev/loop1"
|
|
||||||
"--device=/dev/loop0:/dev/loop2"
|
|
||||||
"--device=/dev/loop0:/dev/loop3"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
# # Xen-orchestra container
|
||||||
|
# xen-orchestra = {
|
||||||
|
# image = "docker.io/ronivay/xen-orchestra:5.140.1";
|
||||||
|
# ports = [ "80:80" ];
|
||||||
|
# volumes = [
|
||||||
|
# "/eru/containers/volumes/xo-data:/var/lib/xo-server"
|
||||||
|
# "/eru/containers/volumes/xo-redis-data:/var/lib/redis"
|
||||||
|
# "/eru/xen-backups:/backups"
|
||||||
|
# ];
|
||||||
|
# environment = {
|
||||||
|
# HTTP_PORT = "80";
|
||||||
|
# };
|
||||||
|
# extraOptions = [
|
||||||
|
# "--device=/dev/fuse:/dev/fuse"
|
||||||
|
# "--device=/dev/loop-control:/dev/loop-control"
|
||||||
|
# "--device=/dev/loop0:/dev/loop0"
|
||||||
|
# "--device=/dev/loop0:/dev/loop1"
|
||||||
|
# "--device=/dev/loop0:/dev/loop2"
|
||||||
|
# "--device=/dev/loop0:/dev/loop3"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue