how to force service using cutom network name #4306
-
|
hi all Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @delacosta456! I'm Dosu and I’m helping the dokploy team. Dokploy intentionally manages networks for its services, which is why it overrides what you specify in your If you want to use a custom network, here's the workaround:
Your services still need to be connected to labels:
- "traefik.docker.network=dokploy-network"Alternatively, you can look into the Isolated Deployment option in Dokploy's Advanced settings, which creates a separate network per application instead of using the shared Let me know if you need more details on any of these approaches! To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
ok it's clear. But the generated network name is too long |
Beta Was this translation helpful? Give feedback.
Hi @delacosta456! I'm Dosu and I’m helping the dokploy team.
Dokploy intentionally manages networks for its services, which is why it overrides what you specify in your
docker-compose.yml. By default, all services are attached to a shared network calleddokploy-networkso that Traefik can route traffic to them [1].If you want to use a custom network, here's the workaround:
Manually create the network on your server first:
Reference it as an external network in your
docker-compose.yml: