.env, and infura key

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2021-02-08 14:04:10 +02:00
parent 2057230713
commit 684ebe7afe
No known key found for this signature in database
GPG Key ID: 4FB0C2329B4C6E29
3 changed files with 7 additions and 2 deletions

View File

@ -86,6 +86,10 @@ Start :
```bash
docker-compose up
```
To use with ifura key create a .env file (look at .env.example)
```bash
docker-compose --env-file .env up
```
Switch to a new terminal:

1
docker/.env.example Normal file
View File

@ -0,0 +1 @@
INFURA_PROJECT_ID="xxx"

View File

@ -17,7 +17,7 @@ services:
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: 'ipfs:5001'
ethereum: 'rinkeby:https://rinkeby.infura.io/v3/XXXX'
ethereum: 'rinkeby:https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}'
RUST_LOG: info
ipfs:
image: ipfs/go-ipfs:v0.4.23
@ -29,7 +29,7 @@ services:
image: postgres
ports:
- '5432:5432'
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
command: ['postgres', '-cshared_preload_libraries=pg_stat_statements']
environment:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: let-me-in