Caprover: Docker Compose Support

Created on 3 Nov 2017  路  4Comments  路  Source: caprover/caprover

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.

Most helpful comment

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.

All 4 comments

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.

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

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? 馃

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

professphysics picture professphysics  路  3Comments

drmrbrewer picture drmrbrewer  路  6Comments

Briston-KS picture Briston-KS  路  5Comments

rschaerer picture rschaerer  路  4Comments

Kimkykie picture Kimkykie  路  5Comments