Move unifi to zippy.

This commit is contained in:
2025-10-22 14:51:39 +01:00
parent d16ffd9c65
commit 2437d46aa9

View File

@@ -6,6 +6,14 @@ job "unifi" {
}
group "net" {
# Run on primary storage node (zippy) for local disk performance
# MongoDB needs local disk, not NFS
# TODO: can move to fractal once it's converted to NixOS
constraint {
attribute = "${meta.storage_role}"
value = "primary"
}
network {
port "p8443" { static = 8443 }
port "p3478" { static = 3478 }
@@ -38,7 +46,7 @@ job "unifi" {
"p5514",
]
volumes = [
"/data/compute/appdata/unifi/data:/config",
"/data/services/unifi/data:/config",
]
}
@@ -105,8 +113,8 @@ job "unifi" {
image = "mongo:8.0"
ports = ["mongodb"]
volumes = [
"/data/compute/appdata/unifi/mongodb:/data/db",
"/data/compute/appdata/unifi/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro"
"/data/services/unifi/mongodb:/data/db",
"/data/services/unifi/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro"
]
}