Yes, unless a custom docker container is used for the ucs app this should work for all apps that use docker-compose. Also not only to change versions, but also to specify additional configuration. I recently explained how to use this method to add additional settings to Kopano Meet. The only thing that you cannot do with an override is removing values.
But: proceed at your own risk
Since the database is not globally reachable I would just keep it as it is.