diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts index 3cf9c256e..fa49fede8 100644 --- a/apps/api/src/lib/services/handlers.ts +++ b/apps/api/src/lib/services/handlers.ts @@ -118,7 +118,7 @@ export async function startService(request: FastifyRequest, fa entrypoint: template.services[s]?.entrypoint, image, expose: template.services[s].ports, - ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}), + ...(exposePort && port ? { ports: [`${exposePort}:${port}`] } : {}), volumes: Array.from(volumes), environment: newEnvironments, depends_on: template.services[s]?.depends_on,