How should the docker compose variables work?

Hi,
Yes the env vars that are set in the dashboard are considered runtime level and therefore overwrite values defined in the compose file.