Skip to content

Commit

Permalink
Add mount point for networks-config.json when running in Docker (#761)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Viénot <[email protected]>
  • Loading branch information
svienot authored Nov 22, 2023
1 parent f2a6ce4 commit 11ba930
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ coverage

/dist

# local env files
# local env and configuration files
.env.local
.env.*.local
networks-config.json

# Editor directories and files
.vscode
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ npm run test:e2e
# Build the Docker image locally
npm run docker:build

# Copy and adjust configuration of Hedera networks as needed
cp networks-config-example.json networks-config.json

# Start the Docker container
# (if not built locally, this will fetch a pre-built image from Google Container Registry)
npm run docker:start
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ services:
restart: "always"
ports:
- "8080:8080"
volumes:
- ./networks-config.json:/app/networks-config.json
54 changes: 54 additions & 0 deletions networks-config-example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
{
"name": "mainnet",
"displayName": "MAINNET",
"url": "https://mainnet-public.mirrornode.hedera.com/",
"ledgerID": "00",
"sourcifySetup": {
"activate": true,
"repoURL": "http://localhost:10000/contracts/",
"serverURL": "http://localhost:5002/",
"verifierURL": "http://localhost:3000/#/",
"chainID": 295
}
},
{
"name": "testnet",
"displayName": "TESTNET",
"url": "https://testnet.mirrornode.hedera.com/",
"ledgerID": "01",
"sourcifySetup": {
"activate": true,
"repoURL": "http://localhost:10000/contracts/",
"serverURL": "http://localhost:5002/",
"verifierURL": "http://localhost:3000/#/",
"chainID": 296
}
},
{
"name": "previewnet",
"displayName": "PREVIEWNET",
"url": "https://previewnet.mirrornode.hedera.com/",
"ledgerID": "02",
"sourcifySetup": {
"activate": true,
"repoURL": "http://localhost:10000/contracts/",
"serverURL": "http://localhost:5002/",
"verifierURL": "http://localhost:3000/#/",
"chainID": 297
}
},
{
"name": "localnode",
"displayName": "LOCAL NODE",
"url": "http://127.0.0.1:5551",
"ledgerID": "FF",
"sourcifySetup": {
"activate": true,
"repoURL": "http://localhost:10000/contracts/",
"serverURL": "http://localhost:5002/",
"verifierURL": "http://localhost:3000/#/",
"chainID": 298
}
}
]

0 comments on commit 11ba930

Please sign in to comment.