A convenient Docker setup for qBittorrent with a macOS desktop shortcut for easy container management.
- Docker Compose configuration for qBittorrent
- macOS desktop shortcut for easy container management
- Automated health checks
- Configured for local development
- macOS
- Docker Desktop
- Python 3.x
- Poetry (Python package manager)
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/qbittorrent.git cd qbittorrent
-
Install dependencies using Poetry:
poetry install
-
Create desktop shortcut:
./create_shortcut.sh
- Double-click
QBittorrent.app
on your desktop to:- Start the qBittorrent container
- Open the web UI in your default browser
- Use ⌘Q to:
- Stop the container
- Clean up resources
Note: The first time you run it, macOS might ask for permissions to:
- Control Terminal
- Access network
poetry run pytest
Verifies:
- Web UI accessibility
- Container status
- Port mappings
- Web UI: http://localhost:8080
- BitTorrent port: 6881
- Download directory:
/tmp
docker-compose.yml
- Docker configurationtest_qbittorrent.py
- Health checkscreate_shortcut.sh
- Desktop shortcut creatorpyproject.toml
- Poetry dependencies and configuration
- Make changes to the code
- Verify everything works:
poetry run pytest
- If you modify the shortcut behavior, recreate it:
./create_shortcut.sh
MIT