Parallel code execution in Docker containers
问题 I have a script that scrapes data by URLslist. This script is executing in a docker container. I would like to run it in multiple instances, for example, 20. For that, I wanted to use docker-compose scale worker=20 and to pass the INDEX to each instance so that the script knows which URLs should be scrapped. Example. ID, URL 0 https://example.org/sdga2 1 https://example.org/fsdh34 2 https://example.org/fs4h35 3 https://example.org/f1h36 4 https://example.org/fs4h37 ... If there are 3