br4chu / docker-compose-maven-plugin

Maven plugin that talks to docker-compose command-line interface
Apache License 2.0
12 stars 4 forks source link

Support remote commands #9

Closed OakLi closed 4 years ago

OakLi commented 4 years ago

If I want to use this plugin, is it necessary to install docker-compose locally?

mjagus commented 4 years ago

Yes, both Maven process that runs this plugin and docker-compose must be on the same machine. AFAIR docker-compose doesn't expose any API that allows to communicate with it remotely but it's possible to communicate with docker remotely via docker-compose by passing DOCKER_HOST environment variable to docker-compose CLI. This can actually be done from this plugin.