MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
168 stars 92 forks source link

SUGGESTED EDIT TO README #111

Open eDigirolamo opened 2 years ago

eDigirolamo commented 2 years ago

DOCKER-compose

qbittorrent: image: markusmcnugen/qbittorrentvpn container_name: qbit cap_add:

hatchcanon commented 2 years ago

I agree that a compose example would be good. This is probably better though

version: "3.3"
services:
  qbittorrent:
    image: markusmcnugen/qbittorrentvpn
    container_name: qbit
    cap_add:
      - NET_ADMIN
    devices:
      - "/dev/net/tun:/dev/net/tun"
    environment:
      - PUID=0
      - PGID=0
      - TZ=America/New_York
      - VPN_ENABLED=yes
      - LAN_NETWORK=192.168.1.0/24
      - NAME_SERVERS=8.8.8.8,8.8.4.4
      - UMASK_SET=022 #optional
    volumes:
      - /YOUR CONFIG PATH:/config
      - /YOUR DLOAD PATH:/downloads
    ports:
      - 8080:8080
      - 8999:8999
      - 8999:8999/udp
    restart: unless-stopped