Repository navigation
Allow scaling docker deployments using replicas #3862
Replies: 20 comments 52 replies
|
Big issue for me. |
|
Are there plans for this? Seems like a pretty vital feature to have. |
|
Big issue for me too |
|
I need this solution |
|
The easiest workaround is to give us the ability to remove The way I skipped this is by comment/remove cd /data/cloolify/services/<serviceID> && sed -i '/container_name:/ s/^/# /' docker-compose.yml && docker compose up -dmy service then started with replicas, and status is running in coolify dashboard |
|
Still having this issue, would be really really nice if we could do something about the conflicting container names. |
|
Seems essential for a lot of scenarios. +1 |
|
I’m switching to Dokploy. Afik Dokploy doesn’t magick the docker compose file. The root cause of this problem is because coolify parses your docker compose file before running it. A pretty flawed technical decision. |
|
Sad the issue was not resolved yet for so long, been truly amazed with the Coolify so far but because of this issue still being persisted I'll be forced to move to other solutions. Been trying to fight with it for past 2 days and seeing this and other topics gives me confidence that it is not on the priority list for Coolify. Can't afford to have downtime on my services. |
|
This seems like a pretty basic/core feature that is missing, also seems like the fix would be pretty straight forward as docker can do the actual replication Especially in the world of JS apps which are single threaded you'd want to replicas to make use of all available resources |
|
Any updates on this? |
|
Any updates? I need this too |
|
Also want this for scaling laravel queue workers... |
|
Having this in coolify would be amazing... Hope this gets looked at in the coming versions. |
|
There are lots of comments saying "I need this" and "seems useful" but no concrete examples. Also "seems simple", but I assure you it is not (try making a PR if it is). If you want this feature and really believe it belongs in Coolify, please make a better case as to why you need it in Coolify. Many apps have a single container design and you can scale the number of workers inside a single container via config or they just naturally scale themselves to the limits of a single host. For Node apps, are you really saturating the CPU? If so, have you looked at UV_THREADPOOL_SIZE? Some Node apps may use in-process global cache (e.g. a list of websockets) so may not be able to scale horizontally without modification. Coolify is built on Docker Compose to take advantage of it's features, but the container naming and networking is not conducive to scaling - and most if not all apps currently supported wouldn't benefit from having multiple clones since they are all running on the same machine anyway. Please provide specific counter examples if you disagree. While Docker Swarm seems like a natural next step, Coolify is built on Docker's bridge networks so Swarm is a big change. Without further info, my take is that this is fairly counter to Coolify's design so would be a huge undertaking that very few people would actually use. If you truly need horizontally scaling apps, you probably should be looking at moving such apps to Kubernetes or just scaling vertically first. |
|
Hey everyone! 👋 Just wanted to let you know that PR #6749 has been created to add native replica support to Coolify. |
|
Just added a lengthy detailed comment on why in does not make sense for v4. We will have it in v5 and it will be extended with our own scaling solution (multi server...) #6749 (comment) |
|
bump |
|
Docker Compose replicas and load balancer options will be available with v4.8.0 a preview release is available now https://github.com/coollabsio/coolify/releases/tag/v4.8.0-rc.1 added via #12541. |

Uh oh!
There was an error while loading. Please reload this page.
Error Message and Logs
Docker doesn't allow for preset container names whenever you are deplying with replicas
Coolify automaticly sets container names so its impossible to have multiple replicas within coolify when trying to create them.
Steps to Reproduce
Create any docker deployment with multiple replicas in any service.
Example Repository URL
No response
Coolify Version
v4.0.0-beta.323
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24
Additional Information
No response
All reactions