Suggested checks for the apps in your containers
With Dockhand connected, an image the app recognises (about 20 with a health endpoint of their own, plus a few dozen web UIs) is offered as an endpoint check on that app's own health address, with what a good answer looks like set up as a value check: Immich's ping says pong, Nextcloud's status.php is not in maintenance, Gitea's health says pass, and so on. Asked on the Docker host's address at the port the container publishes. Container ports are now read from Dockhand's list. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0fa50c2d5a
commit
12f2662465
10 files changed
+502
-5
No files matched your search
@@ -1204,6 +1204,8 @@ export interface EndpointSuggestion {
|
||||
serverId: number | null;
|
||||
serverName: string | null;
|
||||
reason: string;
|
||||
/** For an app recognised from its container: what the check wants. */
|
||||
checks?: string;
|
||||
}
|
||||
|
||||
export type HeartbeatState = "off" | "waiting" | "up" | "running" | "late" | "failed";
|
||||
|
||||
@@ -5,8 +5,8 @@ import { readableError } from "../utils/errors";
|
||||
import { toast } from "../utils/toast";
|
||||
|
||||
/**
|
||||
* Checks the app could set up for you, from what it already knows: a web port a server is listening on (with the name DNS gives it) and a certificate a secret already
|
||||
* reads. One click adds one, a button adds them all; "Not for me" stops one being offered, and they can be brought back. Administrators only, like the checks.
|
||||
* Checks the app could set up for you, from what it already knows: a web port a server is listening on (with the name DNS gives it), an app recognised from its container
|
||||
* (on its own health address), and a certificate a secret already reads. One click adds one, a button adds them all; "Not for me" stops one being offered, and they can be brought back. Administrators only, like the checks.
|
||||
*/
|
||||
export default function EndpointSuggestions({ onAdded }: { onAdded: () => void }) {
|
||||
const [offered, setOffered] = useState<EndpointSuggestion[] | null>(null);
|
||||
@@ -90,7 +90,7 @@ export default function EndpointSuggestions({ onAdded }: { onAdded: () => void }
|
||||
{open && offered.length > 0 && (
|
||||
<>
|
||||
<div className="card-body pb-0 text-secondary">
|
||||
From what the app already knows: web ports your servers are listening on (with the names DNS gives them) and certificates your secrets read. Nothing is asked until you add it.
|
||||
From what the app already knows: web ports your servers are listening on (with the names DNS gives them), apps it recognises in your Docker containers (each on its own health address) and certificates your secrets read. Nothing is asked until you add it.
|
||||
</div>
|
||||
<div className="list-group list-group-flush">
|
||||
{offered.map((s) => (
|
||||
@@ -104,6 +104,7 @@ export default function EndpointSuggestions({ onAdded }: { onAdded: () => void }
|
||||
{s.target}
|
||||
{s.port !== null ? `:${s.port}` : ""}
|
||||
</div>
|
||||
{s.checks && <div className="small">Checks that {s.checks}.</div>}
|
||||
<div className="text-secondary small">
|
||||
{s.reason}
|
||||
{s.serverId !== null && s.serverName && (
|
||||
|
||||
Reference in new issue
Block a user