Relay node in docker

Hi!

I use official cardano-node docker image, I personally think it is better then other unofficial images.

I think better way is to go with docker-host network, then with default docker network.

I’m using p2p now, but when I was using topology updater I was running that script from docker host, I think it will makes some things much easier. Have you considered to run topologyupdater from host, not from container?

I think you need to have volumes pointed to directories not to several files, as you have, I think it is more cleaner way to do it.

that was my docker-compose file, what I used some time ago:

version: "3.5"

services:
  test-relay1:
    container_name: test-relay1
    network_mode: "host"
    build: ./
    restart: always
    volumes:
      - ./node-db:/data/db
      - ./node-config:/config
      - ./node-ipc:/ipc
    logging:
      driver: "json-file"
      options:
        max-size: 50m
        max-file: "100"
volumes:
  node-db:
  node-ipc:

Topology updater script were in ./node-config directory with all configurations, so from host when I was triggering it and if needed it will write all config in same directory and then I just needed to restart test-relay container and it will start using new config.

Edited:

I don’t think your script topologyUpdater.sh is correct. I personally used ones from coincashew:

1 Like