I-am-PUID-0 / pd_zurg

A combined docker image for the unified deployment of itsToggle's, yowmamasita's, and ncw's projects -- plex_debrid, zurg, and rclone
MIT License
117 stars 10 forks source link

Using docker secrets for API key values #3

Closed nbn22385 closed 5 months ago

nbn22385 commented 6 months ago

Is your feature request related to a problem? Please describe.

I can't figure out how to use a Docker secrets file to handle my RD API key using the provided docker image (Docs). Steps I've taken:

  1. Populate a file containing my token:
    printf "MY-RD-API-TOKEN" > rd_token.secret
  2. Add the following to my docker-compose.yml to use the secret:
    secrets: 
    rd_token:
    file: ./rd_token.secret
    ...
    services:
    pd_zurg:
    environment:  
      - RD_API_KEY=/run/secrets/rd_token      # Referencing the secret directly did not work
      - RD_API_KEY_FILE=/run/secrets/rd_token # Appending _FILE did not work
    ...

Describe the solution you'd like

Support or instructions for handling sensitive tokens via Docker secrets

Thank you!

I-am-PUID-0 commented 5 months ago

Resolved in Version [1.1.0]

Please see https://github.com/I-am-PUID-0/pd_zurg#docker-secrets for implementation.

nbn22385 commented 5 months ago

Works great! Thank you.

Just as a side note, the link to the secrets documentation in the "Features" list seems to be broken.

I-am-PUID-0 commented 5 months ago

Thanks. It helps if I don't point links to my private repos... :man_facepalming: