Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose Support #11

Closed
polotto opened this issue Nov 3, 2017 · 6 comments
Closed

Docker Compose Support #11

polotto opened this issue Nov 3, 2017 · 6 comments

Comments

@polotto
Copy link
Contributor

polotto commented Nov 3, 2017

Can I configure and run a custom Docker Compose file with C.D.D (Captain Duck Duck)? I need that to build most of my applications but I don't like the complexity of the others tools like Kubernetes.

@githubsaturn
Copy link
Collaborator

githubsaturn commented Nov 4, 2017

Short answer: No.
More details:

  • Docker compose (or even docker stack deploy) functionality is not exposed through docker API (this makes is impossible for Captain to communicate with docker)
  • Docker compose is sort of abandoned by Docker in favor of swarm
  • Docker compose is useful only to define the skeleton of your application. But once services are created, developers should be able to deploy them independently.

All you need to do in order to convert your docker compose project to Captain project is to create micro services and deploy them independently. No docker compose file would be needed.

In Captain roadmap:

  • Create an example to show how to convert a docker compose based app to Captain format
  • Create an automatic convertor where you upload your docker compose file and it creates service placeholders for your micro services

But before all this, the first thing that I will be working on is to support persistence for Captain apps. Most docker-compose based projects include a database.

@polotto
Copy link
Contributor Author

polotto commented Nov 5, 2017

Thanks for the answer.
I got the ideia, I'll keep waiting for more news about those functionalities.

@JosXa
Copy link

JosXa commented Jun 30, 2020

It looks like this is (now?) a thing: https://docs.docker.com/compose/production/#running-compose-on-a-swarm-cluster

Online, all you usually find are docker-compose files for a collection of services. If there is no way of making them work with Caprover, maybe someone can create a conversion tool? 🤔

@githubsaturn
Copy link
Collaborator

Docker compose a configuration management tool. CapRover is also a configuration management tool. They can't co-exist.

However, you can use Docker compose format to bootstrap initial skeleton of an application. In fact this is how one click apps work. See here https://github.com/caprover/one-click-apps#repo-for-caprover-one-click-apps

@SaadBazaz
Copy link

Still need this, but for custom docker-compose files...

@josedev-union
Copy link

I wrote a simple gh action to allow multiple application deployment on Caprover. https://github.com/josedev-union/caprover-compose-action/tree/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants