This is my set up:
docker-compose.yml:
php:
container_name: php
image: pawlik/kinetic-php:5.5
env_file:
- .env.defaults
.env.defaults:
STORE_URL_SECURE=https://kinetic.docker.dev/
In the running image I have such simple script:
showvars.sh
echo $STORE_URL_SECURE
Now running:
$ docker-compose run php bash showvars.sh
Starting data
https://kinetic.docker.dev/
looks great, but
$ docker-compose run php echo $STORE_URL_SECURE
Starting data
# empty!
What is the difference? Why in the second example this ENV var is empty?