This project consists of a Python process monitor that uses the psutil
module to display information about running processes. Additionally, demonstrate how to run two Python processes inside a Docker container.
- Docker
- Python
# Clone the repository
$ https://github.com/Mistra1n/Process_monitor.git
# Enter the repository
$ cd Process_monitor/
# Open a terminal and run
$ docker-compose up --build
- main.py: Main Python file that lists information about processes.
- server.py: Python file responsible for a test server.
- start.sh: Startup script that starts both processes inside the Docker container.
- Dockerfile: Docker configuration file to create the container image.
- docker-compose.yml: Docker Compose configuration file to make it easier to run both processes.
After running docker-compose up --build
, the container will be started and the server.py
and main.py
processes will run inside the container. You can access information about processes through the main.py
file or other services within the same Docker environment.
......soon video