Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Remote Access Way #3

Open
thegreatestgiant opened this issue Feb 8, 2024 · 0 comments
Open

New Remote Access Way #3

thegreatestgiant opened this issue Feb 8, 2024 · 0 comments

Comments

@thegreatestgiant
Copy link

Intro

I'd like to share the way I set up my instance

  1. I use Cloudflare tunnels - set up a tunnel using docker and make sure to add a -d and remove any --rm
  2. I use rclone which I noticed is hidden all the way in the back, regardless I have a different way of using it

Rclone

You have to have Rclone installed and then you have to install the docker plugin for rclone
Basically

sudo mkdir -p /var/lib/docker-plugins/rclone/config
sudo mkdir -p /var/lib/docker-plugins/rclone/cache

and then - make sure to have the version correct

docker plugin install rclone/docker-volume-rclone:amd64 args="-v" --alias rclone --grant-all-permissions

Then you have to send your rclone configuration (can create with sudo rclone config and should be under /root/.config/rclone/) to /var/lib/docker-plugins/rclone/config/rclone.conf

Compose File

Here's my compose file, obviously you have to make changes with regards to what you name your remote and where it all is on your file system, I also only use books

services:
    kavita:
        image: jvmilazz0/kavita:latest
        container_name: kavita
        volumes:
            - books:/books
            - data:/kavita/config
        environment:
            - TZ=America/New_York
        ports:
            - 5000:5000
        restart: unless-stopped

volumes:
  books:
    driver: rclone
    driver_opts:
      remote: 'kavita:books'
      allow_other: 'true'
      vfs_cache_mode: full
  
  data:
    driver: rclone
    driver_opts:
      remote: 'kavita:data'
      allow_other: 'true'
      vfs_cache_mode: full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant