PuppeteerJS Execution (or other Web Scraping)

So, in my case, in the docker-compose.yml file, only the environment property had been defined, and not the env_file. Hence, only the parameters declared under environment property were getting loaded in the Docker container. And since i forgot to add the extra parameters (that i added in the .env file) under the environment property in docker-compose.yml, it didn’t work.

Now, i have just added the .env filed directly under the env_file property in docker-compose.yml so that the entire file gets included.

One more thing that i had slight trouble with initially was this:

Found out later that this statement was missing the PATH parameter at the end.

Otherwise, it’s really helpful to finally be able to install npm modules in my docker setup!!

1 Like