I have simple manifest that should instantiate application defined docker-compose.yml. I use https://forge.puppet.com/puppetlabs/docker_platform and my manifest looks like this:
include 'docker'
class {'docker::compose':
ensure => present,
}
docker_compose { './docker-compose.yml':
ensure => present,
}
One of my services in docker-compose.yml requires build. When I do `puppet apply` for the first time, it correctly builds images and then run them using docker. Unfortunately, even if something changed, second time `puppet apply` does nothing.
Is there any way how to force `docker_compose` to build images from docker-compose.yml file every time I run `puppet apply`?
↧