bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

docker-compose cannot find .env folder

Open fraballi opened this issue 2 years ago • 2 comments

Cannot find .env folder, when running docker-compose: /bitcore-8.25.25/.env

So this is the docker-compose.yml script portion calling it:

# ...
  bitcore-node:
    build: .
    image: bitcore-node
    links:
      - database
    ports:
      - 8100:8100
      - 3000:3000
    environment:
      - DB_HOST=database
    env_file: .env    # this section

In order this can run correctly, what credentials, properties, etc. should be included and in what file format?

fraballi avatar Mar 08 '22 19:03 fraballi

.env is a file, not a folder. Syntax can be found here.

As far as supported and/or required values, I am not sure. I think it would be helpful to include a .env.example or something along those lines in the repo. You can also get an idea by searching the repo for process.env.

bplunkert avatar Nov 23 '22 21:11 bplunkert

Appreciate it!

On Wed, Nov 23, 2022, 6:19 PM Ben Plunkert @.***> wrote:

.env is a file, not a folder. Syntax can be found here https://www.npmjs.com/package/dotenv.

As far as supported and/or required values, I am not sure. I think it would be helpful to include a .env.example or something along those lines in the repo. You can also get an idea by searching the repo for process.env https://github.com/bitpay/bitcore/search?q=process.env.

— Reply to this email directly, view it on GitHub https://github.com/bitpay/bitcore/issues/3341#issuecomment-1325667854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4GYYSNYQWAUFXRUCRFHRLWJ2C7NANCNFSM5QHKHQIQ . You are receiving this because you authored the thread.Message ID: @.***>

fraballi avatar Nov 23 '22 21:11 fraballi