nov1n / RemarkablePocket

Synchronize Pocket articles with the Remarkable tablet.
GNU General Public License v3.0
142 stars 8 forks source link

article-limit and interval from docker compose #29

Closed reticle5 closed 1 month ago

reticle5 commented 1 month ago

Title pretty much sums it up. I'd like to change the article-limit but I'm running RemarkablePocket from docker compose. So is there a way to set this in the docker-compose.yml ? Same for interval.

nov1n commented 1 month ago

Hi,

In docker compose you can pass commandline flags to the application as follows:

services:
  remarkable-pocket:
    image: ghcr.io/nov1n/remarkable-pocket:0.4.0
    restart: unless-stopped
    environment:
      - TZ=Europe/Amsterdam
    ports:
      - 65112:65112
    volumes:
      - ~/.remarkable-pocket:/root/.remarkable-pocket
      - ~/.rmapi:/root/.rmapi
      - ~/.rmapi-cache:/root/.cache/rmapi
    command: ["-l", "15", "-i", "30m"]

This will increase the limit to 15 articles, and reduce the interval to 30 minutes.

reticle5 commented 1 month ago

Brilliant. Worked like a charm.

nov1n commented 1 month ago

Great to hear :) Feel free to close the issue if your problem is resolved.

reticle5 commented 1 month ago

Thanks again.