fix: compose webhooks fixed

This commit is contained in:
Andras Bacsai
2022-11-09 13:02:42 +01:00
parent 2ad634dbc6
commit 4955157e13
3 changed files with 3 additions and 4 deletions

View File

@@ -287,11 +287,10 @@ export async function proxyConfiguration(request: FastifyRequest<OnlyId>, remote
if (
!runningContainers[destinationDockerId] ||
runningContainers[destinationDockerId].length === 0 ||
!runningContainers[destinationDockerId].includes(id)
runningContainers[destinationDockerId].filter((container) => container.startsWith(id)).length === 0
) {
continue
}
if (buildPack === 'compose') {
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
if (services.length > 0) {