I have a profile in my Compose file like:
web_prod_db:
<<: *web
command: etc. etc.
env_file:
- .env
- .env.prod-db
profiles:
- myprofile
I want the values in .env.prod-db to override the (same-named) variables in .env, but this doesn't seem to happen - even if I swap the order that the files are specified so .env.prod-db is specified first.
Is there anything I can do here to ensure the overrides happen as desired?