Looks like it is just command-line not a service ...
I would like to access docker-compose remotely and possibly POST a yml file to it to create the environment. Does it expose any REST API for those tasks?
It does not expose any REST APIs though I am workign on such a tool at the moment.
Compose is a cli-only tool that talks to the docker daemon via Docker's API.
This means you can configure it to talk to a remote daemon if you like.
I'm not sure that it makes much sense to have a compose API server.
@cpuguy83 I have envisioned it something like Panamax's templates where the yml files are like templates to orchestrate your application. Something like this, along with somthing like the nginx-proxy container, and you can have a nice name based virtualhosting setup and a web interface to provision them. This is also why I really hope you guys don't change the underlying API much as I am using compose as a library to power this tool. I am on IRC most days if you or other Docker folks want to discuss in a more realtime fashion.
@the-destro I'm working on something similar, would be great to talk about it
@hugochinchilla I'm conan_the_destro on irc, look me up in the #docker-compose channel
@hugochinchilla here is my POC. Code is rough but it is starting to become usable: https://github.com/the-destro/amhappy
@the-destro great!, I got permission to publish my own version but I havn't had time for this project in the past 2 weeks, as soon as I start working on it again I will publish it.
+1
+1
+1
I start farmer project for SaaS enterprise applications with minimum overhead. If docker compose has an API i can replace part of my code with docker-compose
I've implemented a RESTful API on top of docker-compose, you can find the project at https://github.com/francescou/docker-compose-ui
You can easily integrate it into your workflow and tools (e.g. SCM, Continuous Deployment tools) and manage different docker hosts through the same API/web client.
You'll also have a minimal user interface to manage application stacks:
is there anything official like that yet?
is there anything official like that yet?
This x 2. Old topic but still a relevant question today.
Most helpful comment
I've implemented a RESTful API on top of docker-compose, you can find the project at https://github.com/francescou/docker-compose-ui
You can easily integrate it into your workflow and tools (e.g. SCM, Continuous Deployment tools) and manage different docker hosts through the same API/web client.
You'll also have a minimal user interface to manage application stacks: