Commit Graph
2 Commits
  • feat(docker): add async port change and docker compose reload for services
    - Introduce async `change_port` to update service port and reload docker compose
    - Add `run_docker_command` for running docker compose commands asynchronously
    - Implement `_get_random_port` utility for selecting available ports
    - Refactor service discovery and port change logic to use new async methods
    - Update proxy and manager logic to support new port change workflow
  • refactor(proxy): move proxy logic to services.mitmproxy and update Docker service model
    - Rename DockerService to DockerContainer and add folder attribute
    - Move proxy-related modules (models, validator) to services.mitmproxy
    - Update imports and references to new module locations
    - Refactor Docker utilities to use DockerContainer and improve service discovery
    - Add manager.py with create_proxy utility stub
    - Initialize discovered Docker services at app startup and warn if none found