Settings order of precedence with ENV vs DB?

If I set an ENV VAR value in my container app.yml ENV section then does it override existing DB Site or GlobalSettings values? I think I’m finding it doesn’t by default?

E.g. DISCOURSE_S3_BUCKET I think needs to be blank in the DB to be picked up by app.yml ENV section?

Is there a way to force taking values from the env’s rather than the DB or is it best just to reset all the existing values? I was just doing a quick config test, so wanted to leave the site settings alone and just override in the app.yml.

Thanks for any insights.

No. The env settings override the database and how the setting from the UX.