From 64475bbb13f0ba0b1cae6b1d0472ab333c0fedda Mon Sep 17 00:00:00 2001 From: HarikrishnanD Date: Wed, 17 Sep 2025 14:07:03 +0530 Subject: [PATCH] fix: Compose domain display logic in projects dashboard - Uncommented the commented-out Compose domain rendering code in ShowProjects.tsx - Fixed data structure to properly iterate through project.environments and env.compose - Added proper condition checking for compose services - Compose services now display their domains in the projects dashboard dropdown - Resolves issue #2606 where template-deployed Compose services didn't show domains --- .../components/dashboard/projects/show.tsx | 67 ++++++++++--------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/apps/dokploy/components/dashboard/projects/show.tsx b/apps/dokploy/components/dashboard/projects/show.tsx index fafa08ffc..12ee3b211 100644 --- a/apps/dokploy/components/dashboard/projects/show.tsx +++ b/apps/dokploy/components/dashboard/projects/show.tsx @@ -291,45 +291,48 @@ export const ShowProjects = () => { )} )} - {/* - {project.compose.length > 0 && ( + {project.environments.some( + (env) => env.compose.length > 0, + ) && ( Compose - {project.compose.map((comp) => ( -
- - - - {comp.name} - - + {project.environments.map((env) => + env.compose.map((comp) => ( +
- {comp.domains.map((domain) => ( - - + + {comp.name} + + + + {comp.domains.map((domain) => ( + - - {domain.host} - - - - - ))} - -
- ))} + + + {domain.host} + + + + + ))} +
+
+ )), + )}
- )} */} + )} ) : null}