Hi all,
I want to install cardano node testnet on docker and public it through port 3001 so my app with cardano-cli can connect to it and query data. So this is a producer node or relay node ?
Here my docker-compose
version: '3.1'
services:
cardano-node:
image: inputoutput/cardano-node:1.35.5
container_name: cardano-node
volumes:
- ./cardano-node-ipc:/ipc # socket path
- ./cardano-node-data:/data
#- ./configuration:/configuration
- ./config:/config
- ./cardano-wallet:/cardano-wallet # cardano-cli path
environment:
- TZ=Asia/Ho_Chi_Minh
- CARDANO_NODE_SOCKET_PATH=/ipc/node.socket
- CARDANO_CLI=/cardano-wallet/cardano-cli
- TESTNET_MAGIC=1
- DOCKER_CLIENT_TIMEOUT=120
- COMPOSE_HTTP_TIMEOUT=120
- NETWORK=preprod
ports:
- "3001:3001"
restart: unless-stopped
networks:
- cardano-node-net
networks:
cardano-node-net:
name: cardano-node-net
driver: bridge
Content of “config” folder (I downloaded below files from /environments/preprod/)
ls config/
alonzo-genesis.json byron-genesis.json config.json db-sync-config.json shelley-genesis.json submit-api-config.json topology.json
#topology.json
{
"LocalRoots": {
"groups": [
{
"localRoots": {
"accessPoints": [],
"advertise": false
},
"valency": 1
}
]
},
"PublicRoots": [
{
"publicRoots": {
"accessPoints": [
{
"address": "preprod-node.world.dev.cardano.org",
"port": 30000
}
],
"advertise": false
}
}
],
"useLedgerAfterSlot": 4642000
}
And my cardano node only run on unix sock.
As I read from GitHub - input-output-hk/cardano-node: The core component that is used to participate in a Cardano decentralised blockchain.
I will need folder “configuration” with 3 files : configuration.yaml , genesis.json , topology.json
Where can I download these files ?
How should I config these files so my cardano node listen on tcp port 3001 and accept connection from remote cardano-cli ?