Using PyCharm Docker compose

I currently use PyCharm to do my Docker container development, and I want to add environment variables to my docker-compose yaml file.

Right now, PyCharm integrates with Docker so that it runs docker compose up when bringing up the container.

I would like to use Doppler variables for my ports like this:

version: "3.8"
      context: .
      dockerfile: ./Dockerfile-Dev
    container_name: tgfp-test-mongodb
      - "${MONGO_PORT}:${MONGO_PORT}"

But those variables are not set unless I don’t use the the native docker compose up command in my build config and make my own with doppler run -- compose blah blah

is there another way in PyCharm to get those variables in to my docker compose file when running?