puppetlabs-docker
puppetlabs-docker copied to clipboard
Restaring Changed containers/services
Hello, we are using docker_compose resource from your module, when we change docker-compose file module does not call docker-compose up -d so we have to add a notify to docker-compose file resource and call exec comand for docker-compose up -d, Normally docker-compose dedects which services changed and do not restart unchanged containers, it would be benefial if you add extra state called latest, which will call docker-compose up -d if file changed.
@whitepiratebaku does declaring the compose file and subscribing to it not work for you?
file { '/tmp/docker-compose.yml':
source => <insert source>,
}
docker_compose { 'test':
compose_files => ['/tmp/docker-compose.yml'],
ensure => present,
subscribe => File['/tmp/docker-compose.yml'],
}
Hello! 👋
This issue has been open for a while and has had no recent activity. We've labelled it with attention-needed
so that we can get a clear view of which issues need our attention.
If you are waiting on a response from us we will try and address your comments on a future Community Day.
Alternatively, if it is no longer relevant to you please close the issue with a comment.