feat: add Cockpit web UI service to nas-samba app

This commit is contained in:
2026-03-09 18:21:09 +00:00
parent a16b5a232e
commit 2351ad84bc
2 changed files with 36 additions and 5 deletions

View File

@@ -3,14 +3,15 @@
"name": "NAS Samba",
"id": "nas-samba",
"available": true,
"exposable": false,
"port": 9090,
"exposable": true,
"dynamic_config": true,
"no_gui": true,
"no_gui": false,
"tipi_version": 1,
"version": "latest",
"categories": ["network", "utilities"],
"description": "Samba SMB/CIFS file share for the /nas drive. Connect at \\\\192.168.0.15\\data with username alexz.",
"short_desc": "SMB file share for the NAS drive",
"description": "Samba SMB/CIFS file share for the /nas drive with Cockpit web UI for server management. Connect via SMB at \\\\192.168.0.15\\data with username alexz.",
"short_desc": "NAS file share with Cockpit management UI",
"author": "servercontainers",
"source": "https://github.com/ServerContainers/samba",
"form_fields": [

View File

@@ -5,7 +5,7 @@
{
"name": "nas-samba",
"image": "servercontainers/samba:latest",
"isMain": true,
"isMain": false,
"hostname": "nas",
"addPorts": [
{
@@ -41,6 +41,36 @@
"value": "[data]; path=/nas; valid users=alexz; browsable=yes; writable=yes; create mask=0664; directory mask=0775"
}
]
},
{
"name": "nas-cockpit",
"image": "cockpit/ws:latest",
"isMain": true,
"internalPort": 9090,
"privileged": true,
"volumes": [
{
"hostPath": "/run/systemd/private",
"containerPath": "/run/systemd/private",
"readOnly": false
},
{
"hostPath": "/run/dbus",
"containerPath": "/run/dbus",
"readOnly": false
},
{
"hostPath": "/",
"containerPath": "/host",
"readOnly": false
}
],
"environment": [
{
"key": "COCKPIT_KUBE_INSECURE",
"value": "true"
}
]
}
]
}