Docker. Best way to save config?

I'm successfully connecting to the web server in the rclone docker container. I'd like to keep the config file outside of the container. I'd also like to set a login and password for the web server, so that I don't have to paste the password from the log file each time.

Here's the relevant section of my YML file.

    image: rclone/rclone
    container_name: rclone_rclone
    restart: always
    command: rcd --rc-web-gui --rc-addr :5572
      - "5572:5572"
      - /home/jsmith/synology:/synology
      - ~/.config/rclone:/config/rclone
      - ~/data:/data:shared
      - PHP_TZ=Europe/London
      - PUID=1000
      - PGID=1000

I'm pretty sure there's something wrong with the volumes, but I can't figure it out. I suspect the answer lies in the Installation for Docker section.

I have very limite docker/YML experience, but I can at least tell you that the user/pass for the webserver can be easily set via the following switches:

--rc-user test
--rc-pass test

Ah thank you. That worked.

And I've reassigned the config folder with this in the YML.

  - /home/jsmith/docker/rclone_rclone:/config/rclone

That looks correct for saving the config - it matches the recommendation in the install doc

You might consider grabbing the log file as well. You don't need them -- until you do. :slight_smile:

  • './logs/:/logs/'

Thank you. I wrote a How To in case it's useful for anyone.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.