How to run multiple instances of the Python application with external configuration?

What to eat: an application in Python with Selenium, the mechanism is configured in a separate file .json, which specifies the desired patterns of work and methods. There is a small admin panel that generates this same config .json
What you need: after configuration to have the ability to start/stop/restart/edit multiple instances of the application.
All more or less suitable found on the Internet is docker.
I understand that I create the "parent" system image along with my desired app/library, then can you copy and run them?
Only one thing - don't really understand the mechanics of the interaction with the container I connect to container, something to see, for example, the console output, log, or edit the configuration file?
If there are any other options besides docker - I'd love to hear.
P. S. it is Desirable, that it worked on Windows under Windows - don't even ask why, please \_(ツ)_/
March 23rd 20 at 19:32
1 answer
March 23rd 20 at 19:34
I don't quite understand, frankly, what you want, but to answer your question on Docker: Yes, you can connect to the container, go inside to complete the team. There can traverse the folder. Another thing is that I'm not really sure that working with Docker under Windows you will be without pain and suffering.

PS. I don't really understand why you need multiple instances of an application? I really think you have complicated everything. Why can't you implement it in one app? Type cause the script of your application with specific settings after you change the config in json it reads and executes certain actions through selenium. Why does the Docker containers?
App bot for whatsapp. 1 instance selenium is one number whatsapp. That's why different configuration templates answers.
Docker I have dropped immediately after I saw how much he's on my vds otzhiraet.
Made in the program, the bot is not a complex mechanism, which in the case of crash not closed, and the cycle raises the instance of selenium with the desired profile and continues.
Now read the info on the subprocess. At the moment I see this: In the admin panel I set my desired pattern, then it is saved in the template file of the bot and updated the configuration file for the subprocess, then the subprocess file in a loop chasing this file as soon as there is a new record - is starting a new instance. The subprocess is running as a service. - Florence39 commented on March 23rd 20 at 19:37
Dude wants to spam with different numbers on the up again I) - zack commented on March 23rd 20 at 19:40
@zack, I don't need to spam, I need to connect the bot to multiple rooms, whatsapp. - Florence39 commented on March 23rd 20 at 19:43

Find more questions by tags Python