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

Request: Combine rclone & zurg? #129

Closed
Reasonable-Grape2698 opened this issue Dec 11, 2024 · 0 comments
Closed

Request: Combine rclone & zurg? #129

Reasonable-Grape2698 opened this issue Dec 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Reasonable-Grape2698
Copy link

FROM ghcr.io/debridmediamanager/zurg-testing:latest

RUN curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip && \
unzip *.zip && cp rclone-*-linux-amd64/rclone /usr/bin && chown root:root /usr/bin/rclone && chmod 755 /usr/bin/rclone

RUN apk add screen fuse3

COPY rclone.conf /root/.config/rclone/rclone.conf

ENTRYPOINT ["sh", "-c", "screen -d -m /app/zurg && rclone mount zurg: /data --allow-other --allow-non-empty --dir-cache-time 10s --vfs-cache-mode full"]

Tested and it works as intended. Only downside is you can't customise the rclone command, but I assume this could be done another way to fix that

Docker compose becomes:

services:
  zurg:
    image: test:test
    container_name: zurg
    restart: unless-stopped
    volumes:
      - ./scripts/plex_update.sh:/app/plex_update.sh
      - ./config.yml:/app/config.yml
      - zurgdata:/app/data
      - /mnt/zurg:/data:rshared
    cap_add:
      - SYS_ADMIN
    security_opt:
      - apparmor:unconfined
    devices:
      - /dev/fuse:/dev/fuse:rwm
    environment:
      TZ: Europe/Berlin
      PUID: 1000
      PGID: 1000

volumes:
  zurgdata:
@Reasonable-Grape2698 Reasonable-Grape2698 added the enhancement New feature or request label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant