netbox
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-06 13:26:22 +01:00
parent 067f779597
commit eb01682a57
2 changed files with 92 additions and 0 deletions

72
apps/netbox/live.hcl Normal file
View File

@@ -0,0 +1,72 @@
job "netbox" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
network {
port "http" {
to = 8000
}
}
service {
name = "netbox"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.netbox.rule=Host(`netbox.service.nr5`)",
]
}
volume "netbox" {
type = "csi"
source = "netbox"
read_only = false
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
restart {
attempts = 5
delay = "60s"
}
task "netbox" {
driver = "podman"
volume_mount {
volume = "netbox"
destination = "/config"
read_only = false
}
config {
image = "docker.io/netboxcommunity/netbox"
ports = ["http"]
}
env {
TZ="Europe/Berlin"
SUPERUSER_EMAIL="udo@maketank.net"
SUPERUSER_PASSWORD="superu"
ALLOWED_HOST="netbox.service.nr5"
DB_WAIT_DEBUG=1
DB_NAME="netbox"
DB_USER="netbox"
DB_PASSWORD="IK$Wb5TGhphNo:-WktT"
DB_HOST="postgres.service.nr5"
DB_PORT="5472"
REDIS_HOST="redis.service.nr5"
REDIS_PORT="6379"
}
resources {
cpu = 400
memory = 128
}
}
}
}

20
apps/netbox/volume.hcl Normal file
View File

@@ -0,0 +1,20 @@
type = "csi"
id = "netbox"
name = "netbox"
plugin_id = "nfs"
capability {
access_mode = "single-node-writer"
attachment_mode = "file-system"
}
context {
server = "ebin02.wks"
share = "/data/raid1-ssd/app-data/netbox"
mountPermissions = "0"
}
mount_options {
fs_type = "nfs"
mount_flags = [ "timeo=30", "vers=3", "_netdev" , "nolock" ]
}