Add Dozzle logs button to service card footer

Adds a scroll-text icon button between the web link and Coolify link
that opens Dozzle for viewing container logs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-02-04 01:01:19 +01:00
parent af49497923
commit 68649b0073
3 changed files with 29 additions and 1 deletions

View File

@@ -19,6 +19,17 @@ export interface DiscoveredService extends Service {
coolifyStatus: string;
}
export function getCoolifyUrl(service: DiscoveredService): string {
const base = process.env.NEXT_PUBLIC_COOLIFY_URL || 'http://192.168.1.3:8000';
const project = process.env.NEXT_PUBLIC_COOLIFY_PROJECT_UUID || 'a8484ggc88c40w4g4k004ow0';
const env = process.env.NEXT_PUBLIC_COOLIFY_ENV_UUID || 'dckc0w4ko8s888c4gk84skoo';
return `${base}/project/${project}/environment/${env}/${service.resourceType}/${service.uuid}`;
}
export function getDozzleUrl(): string {
return process.env.NEXT_PUBLIC_DOZZLE_URL || 'http://192.168.1.3:9999';
}
export interface Bookmark {
name: string;
url: string;