docker-compose cannot understand my env_file
It looks like you are confusing env_file
with the .env
file.
env_file
provides environment variables to a container, but are not available to the Compose file
.env
provides environment variables for use inside the Compose file