rogerfar / rdt-client

Real-Debrid Client Proxy
MIT License
810 stars 108 forks source link

Running Multiple Instances in Docker #540

Closed naby-dev closed 1 month ago

naby-dev commented 1 month ago

How can I run multiple instances of RDT Client? One for symlinks and another for Internal Downloader? Initially I tried set a docker env variable to change the port but that did not work.

This is what my compose looks like:


 rdtclient:
    image: rogerfar/rdtclient:latest
    container_name: rdtclient
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
    volumes:
      - ${DOCKER_APPDATA}/rdt-client/database:/data/db
      - ${DOWNLOADS_MOUNT}:/mnt/downloads
    restart: always
    logging:
      driver: json-file
      options:
        max-size: 10m
    ports:
      - '6500:6500'
    networks: 
      - mediarr-network

  rdtclient-zurg:
    image: rogerfar/rdtclient:latest
    container_name: rdtclient-zurg
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - PORT=6501
    volumes:
      - ${DOCKER_APPDATA}/rdt-client-zurg/database:/data/db
      - ${ZURG_TORRENTS_MOUNT}:/mnt/zurg/torrents
      - ${SYMLINKS_MOUNT}:/mnt/symlinks
    restart: always
    logging:
      driver: json-file
      options:
        max-size: 10m
    ports:
      - '6501:6501'
    networks: 
      - mediarr-network
BiscuitHub commented 1 month ago

https://github.com/rogerfar/rdt-client/issues/471#issuecomment-2062408212

This person changed the setting in a json

rogerfar commented 1 month ago

In docker you should change the bind port:

    ports:
      - '6501:6500'