Cardano Services
Everything in one script with Docker Compose.

Prepare the Configuration Volume

The block producer gets its keys from a volume that we prepare here
1
docker run --name=tmp -v bprod-keys:/keys centos
2
docker cp ~/cardano/keys/pool/kes.skey tmp:/keys/kes.skey
3
docker cp ~/cardano/keys/pool/vrf.skey tmp:/keys/vrf.skey
4
docker cp ~/cardano/keys/pool/node.cert tmp:/keys/node.cert
5
docker rm -f tmp
Copied!

Running the Relay + Block Producer

1
$ docker-compose -f nix/docker/compose/cardano-nodes.yaml up --detach
2
​
3
Creating compose_relay ... done
4
Creating compose_bprod ... done
Copied!
For details you may want to have a look at nix/docker/compose/cardano-nodes.yaml.

Stopping the Relay + Block Producer

1
$ docker-compose -f nix/docker/compose/cardano-nodes.yaml down
2
​
3
Stopping compose_bprod ... done
4
Stopping compose_relay ... done
5
Removing compose_bprod ... done
6
Removing compose_relay ... done
7
Removing network cardano
Copied!
Last modified 10mo ago