coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.55k stars 1.61k forks source link

[Bug]: Problem with deploy docker stack or services on docker swarm cluster #3032

Open mdargacz opened 1 month ago

mdargacz commented 1 month ago

Description

I have a problem with deploy docker stack or services on docker swarm cluster.

I started coolify and docker swarm cluster (with one manager and 3 worker nodes) on hetzner cloud. Coolify dashboard image

Swarm cluster status from manager instance image

I configured this docker swarm cluster in Coolify. I added manager node and one worker node as below image image

When I try deploy docker stack witch bases on docker-compose file on this docker swarm cluster image I receive this message image

Minimal Reproduction (if possible, example repository)

  1. Append docker swarm manager to Coolify servers
  2. Get from github repo with docker-compose.yaml file prepared for docker swarm
  3. Try deploy above docker stack on docker swarm manager server

Exception or Error

Failed to deploy.

To deploy to a Swarm cluster you must set a Docker image name first.

Version

v4.0.0-beta.323

Cloud?

Wouter8 commented 1 month ago

I'm facing the same issue. Not sure where it is expecting a Docker image name? My docker-compose.yml contains an image name for all services.

venku122 commented 2 days ago

I am running into this same issue. I deployed a custom registry to my swarm. The registry pod lives on my manager node and all worker nodes have access to it. It works fine using other docker swarm tools like Portainer.

mdargacz commented 2 days ago

In your opinion I should install registry on my cluster and it's all? How sample docker-compose file should look? Could you show me this? How your deploy looks in coolify dashboard?

Thanks for more some details.