- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Debbuging in Docker
        cybersecuritylearning edited this page Nov 4, 2023 
        ·
        11 revisions
      
    On the docker-compose file, we have to set, on the python server cyberpython, the number of workers to be 1 (--workers) in the gunicorn command. We have to expose a port from the same image, like 9001:9001.
We have to add some code on the /src/server/wsgi.py file.
```debugpy.listen(('0.0.0.0', 9001))
```debugpy.wait_for_client()
```print("connected")'