How to use docker curl instead of docker exec?

Hello,
I have a docker-compose file as this:

version: "3"
services:

  demonstrator-dynamic-2-0:
    container_name: demonstrator-dynamic-2-0
    build:
      context: ./
      dockerfile: Dockerfile.demonstration
    ulimits:
      nproc: 65535
      nofile:
        soft: 20000
        hard: 40000
    volumes:
      - C:\Users\AK125163\Desktop\zanosh1-dockerized\shared_files\plots:/zanosh1/plots
      - type: bind
        source: C:\Users\AK125163\Desktop\zanosh1-dockerized\shared_files\txt_outputs.txt
        target: /zanosh1/txt_outputs.txt
      - type: bind
        source: C:\Users\AK125163\Desktop\zanosh1-dockerized\zanosh1_app\masterfile_instant_part.csv
        target: /zanosh1/masterfile_instant_part.csv

    # network_mode: host
    privileged: true
    restart: unless-stopped

  consolid:
      container_name: consolid2
      build:
        context: .
        dockerfile: Dockerfile.consolid
      ports:
        - "8050:8050"
      ulimits:
        nproc: 65535
        nofile:
          soft: 20000
          hard: 40000
      volumes:
      - C:\Users\AK125163\Desktop\zanosh1-dockerized\shared_files\plots:/zanosh1/plots
      - type: bind
        source: C:\Users\AK125163\Desktop\zanosh1-dockerized\shared_files\txt_outputs.txt
        target: /zanosh1/txt_outputs.txt
      - type: bind
        source: C:\Users\AK125163\Desktop\zanosh1-dockerized\zanosh1_app\masterfile_instant_part.csv
        target: /zanosh1/masterfile_instant_part.csv
      
      # network_mode: host
      privileged: true
      restart: unless-stopped

I use this to excute first script and run the dashboard: consolid

docker exec -it demonstrator-dynamic-2-0 bash
cp digested/excel/Record_2021-09-08_12-11-20.csv excel

How can I use curl command to send data to docker ?

Have you checked out the docker engine api?

under container there is a api to send a tar file to be extracted, also there is a exec api endpoint

Thanks for editing and the answer. I will try to use your link. Can you check my file please?

Hi again,

What do you want me to check?

Would you please share your github to share my file with you?

Would you please share your github to share my file with you?
@terpz