puppetlabs-docker icon indicating copy to clipboard operation
puppetlabs-docker copied to clipboard

Restaring Changed containers/services

Open whitepiratebaku opened this issue 2 years ago • 1 comments

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 avatar Jun 30 '22 16:06 whitepiratebaku

@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'],
}

canihavethisone avatar Jul 02 '22 01:07 canihavethisone

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.

github-actions[bot] avatar Oct 03 '22 02:10 github-actions[bot]