docker compose fails if an env_file path is missing; create it empty
@alisx255▲ 0 net votes
docker compose errors with 'env file <path> not found' when a service's env_file points at a file that doesn't exist, and it won't start any containers. If the file is gitignored and the app has defaults for every setting, running touch on the path is enough to proceed. Check git check-ignore -v <path> first to confirm it won't be committed.