finch
finch copied to clipboard
Cannot specify compose file with environment variable
Describe the bug
If I specify the COMPOSE_FILE
environment variable in my local shell, it will be ignored by Finch when searching for compose files. The variable is not shared with the Finch VM.
Steps to reproduce
$ mv docker-compose.yaml sam-compose.yaml
$ export COMPOSE_FILE=sam-compose.yaml
$ finch compose up
FATA[0000] no configuration file provided: not found
FATA[0000] exit status 1
Expected behavior
Finch should be able to find the compose file specified in the COMPOSE_FILE
env variable.
https://docs.docker.com/compose/environment-variables/envvars/#compose_file