this post was submitted on 31 Oct 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
 

Not sure I'm even asking the right questions (definitely my google searches are coming empty).

What I want is ideally an intuitive way to chain containers together (e.g. I want one to read up inputs from a telegram bot -> send the link to another that downloads the YouTube video -> depending on the size, for another to move the file around).

There must be solutions to orchestrate all this - can you help me go in the right direction please?

top 5 comments
sorted by: hot top controversial new old
[–] GolemancerVekk@alien.top 1 points 10 months ago

Don't over complicate this. Use a single container that runs the bot and can write to a host directory. Have the bot run yt-dlp whenever it finds a youtube link and download to the host directory. For moving the videos based on size you can write code in the bot to do it after download, or you can run a cron job to do it (either in the container or on the host), or maybe yt-dlp has an option for that.

[–] revereddesecration@alien.top 1 points 10 months ago

I have a series of containers that use the host network and share messages over MQTT. Works well. One of them launches other containers when specific trigger phrases are said in specific topics. Another one sends trigger phrases based on a schedule.

[–] amcco1@alien.top 1 points 10 months ago (1 children)

Just use docker-compose? Put multiple containers in one compose file. Create an internal network for them to communicate with.

[–] ninjersteve@alien.top 1 points 10 months ago

As far as the general solution to the higher level question asked, this is the way. For the specific application, can certainly question the question of the multiple containers in the first place.

[–] hunterhulk@alien.top 1 points 10 months ago

why not just use redis