I am running balena os on a raspberry pi with a docker-compose.yml file. More specifically i have a container which initializes spi communication with an adc, reads data and then stores them in a csv file. Then i have a second container which runs node-red and exposes the node-red dashboard on balenas cloud public url. What i can’t figure out is how to read the csv file from the node-red although it is located into the spi container.
Thank you in advance,
My docker-compose.yml file:
version: '2' volumes: resin-data: services: node-red: build: ./node-red volumes: - 'resin-data:/data' restart: always privileged: true network_mode: host labels: io.balena.features.supervisor-api: '1' cap_add: - SYS_RAWIO devices: - "/dev/mem:/dev/mem" - "/dev/gpiomem:/dev/gpiomem" - "/dev/i2c-1:/dev/i2c-1" ports: - 80:80 spi_read_store: build: ./Multi_spi volumes: - 'resin-data:/data' restart: always privileged: true