bitcore
bitcore copied to clipboard
docker-compose cannot find .env folder
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?
.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
.
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: @.***>