Inconsistent networking error when creating raw compose vs from template
i noticed an inconsistent networking error when creating a raw compose file vs creating the same "compose file" from an app template.
Steps to reproduce:
First create an app from template:
- Create Service > Template
- Search GlitchTip and Create
Next create app from raw compose
- Create Service > Compose
- Enter a name: e.g
glitchtip-two
, compose type: Docker compose
- Open the service and switch the Raw
for the compose provider.
- Open glitchtip-two
service:
- copy the compose file from glitchtip
(compose created from template) , Click "Save"
- copy the environmental variables from glitchtip
(compose created from template) . Click "Save"
- Next, go the domains tab and generate a new domain for glitchtip-two
. Service name: web
, port: 8000
. Click "Create"
- Deploy the 2 compose.
Open the 2 apps:
go to /api/settings/
, you'd notice the one deployed from raw compose returns 500 and the other deployed from the template runs fine.
For the app deployed via raw compose, i notice there's a name resolution issue for DB (see screenshot)
---
Did i missing anything? I've also noticed a similar error with other applications especially when resolving container names. or does deploying a template add some extra configs?
i checked for glitchtip app configs (https://github.com/Dokploy/dokploy/blob/canary/apps/dokploy/templates/glitchtip/index.ts) and there's nothing extra it's adding.GitHub
dokploy/apps/dokploy/templates/glitchtip/index.ts at canary · Dokpl...
Open Source Alternative to Vercel, Netlify and Heroku. - Dokploy/dokploy

6 Replies
It's not a bug, it's simply that applications deployed under a template have a feature flag called isolated deployments, you can read more about it in this github issue, and we also mention it in the documentation about this behaviour. https://github.com/Dokploy/dokploy/issues/1004 https://docs.dokploy.com/docs/core/docker-compose/utilities#isolated-deployments
GitHub
network conflict · Issue #1004 · Dokploy/dokploy
To Reproduce using two same docker-compose to create services. Current vs. Expected behavior if deploy 2 compose has same configuration, the second deploy will using the first. for example, if ther...
Utilities | Dokploy
Utilities for your Docker Compose application
thank you!
how do you isolate a deployment? nothing seems to happen.
Do i need to copy/paste the new compose file generated ?
When i click "Show Utilities" and click save, i get a success notification that the compose is isolated, but on checking
/project.all
i still see "isolatedDeployment": false,

just figured i needed to enable the switch "Enable Randomize" for isolation - not clear enough!

@Siumauricio just opened a PR to fix this https://github.com/Dokploy/dokploy/pull/1441
thx