1

I use Renovate to keep my dependencies up-to-date. However there are some dependencies that I want to exclude from automatic updates, i.e. I don't want Renovate to update them, ever.

One such dependency is Postgres, which is specified in docker-compose.yml like so:

services:
  db:
    image: postgres:11

Currently, Renovate is creating PRs that would change the 11 to 15. Is there a configuration option in Renovate that allows me to exclude this dependency from Renovate?

Antonio Dragos
  • 1,973
  • 2
  • 29
  • 52

1 Answers1

1

You want to use a package-rules.

This rule will disable updates for all dependencies found in docker compose files which have postgres in their name.

{
  "packageRules": [
    {
      "matchPackagePatterns": ["postgres"],
      "matchManagers": ["docker-compose"],
      "enabled": false
    }
  ]
}
secustor
  • 3,001
  • 2
  • 14
  • 20