this post was submitted on 26 Nov 2023
1 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I've started using FreshRSS for my RSS backend. Reeder on iOS, of course. I was rather surprised the tool doesn't do automated feed refreshes out of the box. Further, the documentation didn't offer any container-native approach to automatically updating my feeds.

I'd recently discovered ofelia and thought this might be a good use case for it. I added the following to the services block in my FreshRSS docker-compose.yml file:

ofelia:
  image: mcuadros/ofelia:latest
  depends_on:
    - freshrss
  command: daemon --docker
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro

Then I added the following labels to my freshrss container definition:

- "ofelia.enabled=true"
- "ofelia.job-exec.datecron.schedule=@every 30m"
- "ofelia.job-exec.datecron.command=/usr/bin/php /var/www/FreshRSS/app/actualize_script.php"

A couple of notes:

  • ofelia lets you run commands inside the other container with job-exec; there are a few other options for job types.
  • Output from the command you pass as a label will show up in ofelia's logs.

I suspect I will find many more use cases for ofelia now that I've discovered it.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here