Deep-link Dozzle logs button to specific container
The discover API now fetches container names from Docker via the Python API on port 9876 and matches them to services by UUID. The Dozzle logs button builds a proper deep link using the Dozzle host ID and container name, opening directly to that container's log stream. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,8 +26,13 @@ export function getCoolifyUrl(service: DiscoveredService): string {
|
||||
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 function getDozzleUrl(service?: DiscoveredService): string {
|
||||
const base = process.env.NEXT_PUBLIC_DOZZLE_URL || 'http://192.168.1.3:9999';
|
||||
const hostId = process.env.NEXT_PUBLIC_DOZZLE_HOST_ID || '6c1738d9-6f12-4ed7-9293-70a91f407347';
|
||||
if (service?.container) {
|
||||
return `${base}/container/${hostId}~${service.container}`;
|
||||
}
|
||||
return base;
|
||||
}
|
||||
|
||||
export interface Bookmark {
|
||||
|
||||
Reference in New Issue
Block a user