My goal is to use environment variables in the docker-compose.yml file that can be referenced inside the application itself like in config/database.yml
docker-compose.yml
... environment: $DB_NAME: myapplication $DB_USER: appadmin $DB_PASS: secret ... config/database.yml
... database: $DB_NAME db_user: $DB_USER db:pass: $DB_PASS ... But no matter how do I try to send the variables to my file, They don't get recognised. :(