Add App button #1546
Maximus1
started this conversation in
Customisations
Add App button
#1546
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
German first, English at the bottom
Heimdall: „App hinzufügen"-Button via Portainer
Ziel
Ein dauerhafter Floating-Button (unten rechts), der direkt das Formular zum Hinzufügen einer neuen App oder Webseite öffnet – auch nach Container-Updates.
Voraussetzungen
Schritt 1: Init-Skript erstellen
Per SSH auf dem Host-System ausführen:
Skript anlegen:
Das
if-Statement verhindert, dass der Button bei jedem Neustart doppelt eingefügt wird.Schritt 2: Volume-Mount in Portainer eintragen
Im Portainer Stack-Editor das Volume für
custom-cont-init.dergänzen:Schritt 3: Stack aktualisieren und prüfen
In Portainer: Update the stack bzw. Container neu starten, dann prüfen:
Erwartete Ausgabe:
Ergebnis
Ein halbtransparenter „+"-Button erscheint dauerhaft unten rechts auf dem Dashboard und öffnet direkt
/items/create.Bei jedem Container-Update (neues Image) wird das Skript automatisch erneut ausgeführt und der Button wieder eingefügt.
Troubleshooting
No custom files found/custom-cont-init.ddirekt gemountet istdocker exec heimdall bash /config/custom-cont-init.d/add-button.sh/items/createprüfenHeimdall: "Add Application" Button via Portainer
Goal
A persistent floating button (bottom right) that directly opens the form for adding a new app or website – surviving container updates.
Prerequisites
Step 1: Create the Init Script
Run the following on the host system via SSH:
Create the script:
The
ifstatement prevents the button from being inserted multiple times on each restart.Step 2: Add Volume Mount in Portainer
In the Portainer stack editor, add the volume for
custom-cont-init.d:Step 3: Update the Stack and Verify
In Portainer: click Update the stack or restart the container, then verify:
Expected output:
Result
A semi-transparent "+" button appears persistently in the bottom right corner of the dashboard and directly opens
/items/create.Every time the container is updated (new image), the script runs automatically and re-inserts the button.
Troubleshooting
No custom files found/custom-cont-init.dis mounted directly in the container rootdocker exec heimdall bash /config/custom-cont-init.d/add-button.sh/items/createBeta Was this translation helpful? Give feedback.
All reactions