Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: ports for services

Andras Bacsaid5620d305dcc
diff --git a/apps/api/src/lib/services/handlers.ts b/apps/api/src/lib/services/handlers.ts
index 3cf9c256e9..fa49fede80 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<ServiceStartStop>, 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,