podify-org / podify

Create podcasts from anything youtube-dl can handle
https://www.podify.org
GNU General Public License v3.0
290 stars 19 forks source link

Fully-contained docker image #17

Closed reesericci closed 3 years ago

reesericci commented 3 years ago

It would be cool if you guys could make the current docker image contain Redis and Postgres in one complete image.

maxhollmann commented 3 years ago

That's not really the way docker is intended to be used (see https://docs.docker.com/config/containers/multi-service_container/). What's your use case for this? Take a look at the docker-compose.example.yml for how to run the whole thing using docker-compose.

reesericci commented 3 years ago

I want to run it in k8s and don't want a ton of containers for one service. I think it would be cool if you guys had both available, as if I was already running Redis and Postgres, then that would be great. It would be useful to some people like me.

reesericci commented 3 years ago

@maxhollmann

BadCo-NZ commented 3 years ago

I would like to run this on unRAID with minimal complexity, so one container would be easier.

Edit: Although I do have a MariaDB container for other services I could utilise.

reesericci commented 3 years ago

I don't use redis, I don't use postgres, if I did I could drop this in. But I don't, and a lot of other people don't, and a simple container would be useful.

borgmanJeremy commented 3 years ago

Whether you run redis and Postgres in one container or in many containers you must still run those services.

The current compose model is much more standard and IMO it provides an easy setup with plenty of flexibility.

BadCo-NZ commented 3 years ago

Whether you run redis and Postgres in one container or in many containers you must still run those services.

The current compose model is much more standard and IMO it provides an easy setup with plenty of flexibility.

Which is fine, if you can use docker-compose.

Unfortunately unRAID dies not :( well, there might be a way to do it that I'm not aware of yet.

borgmanJeremy commented 3 years ago

Ohhhhhh ok

Maybe this will work? https://forums.unraid.net/topic/91436-is-docker-compose-available-on-unraid/

reesericci commented 3 years ago

I don't use docker-compose either, I use Kubernetes.

reesericci commented 3 years ago

@maxhollmann any comments?

maxhollmann commented 3 years ago

Well, I won't work on a single-container Dockerfile myself as there are many things with higher priority on my todo list. Like borgmanJeremy said, you're running all three services either way, the only difference running it in a single container makes is that errors become both more likely and less transparent. I'm open to pull requests though if you or someone else wants to work on this, as @BadCo-NZ' seems to have a valid usecase for it.

I'm currently experimenting with Kubernetes though, so I might provide a sample Kubernetes config sometime soon, though still running the three services in separate containers ;)

BadCo-NZ commented 3 years ago

Ohhhhhh ok

Maybe this will work? https://forums.unraid.net/topic/91436-is-docker-compose-available-on-unraid/

Yeah I figured there would be a way to script it to make it persistent, I'll have a look more into it this weekend, thanks!

BadCo-NZ commented 3 years ago

Well, I won't work on a single-container Dockerfile myself as there are many things with higher priority on my todo list. Like borgmanJeremy said, you're running all three services either way, the only difference running it in a single container makes is that errors become both more likely and less transparent. I'm open to pull requests though if you or someone else wants to work on this, as @BadCo-NZ' seems to have a valid usecase for it.

I'm currently experimenting with Kubernetes though, so I might provide a sample Kubernetes config sometime soon, though still running the three services in separate containers ;)

Thanks for the reply @maxhollmann

I'm not that familiar with postgres and DBs in general, but is there a way to use another DB like MariaDB so we don't need to double up on Databases? Or does postgres do something special?

maxhollmann commented 3 years ago

I'm not that familiar with postgres and DBs in general, but is there a way to use another DB like MariaDB so we don't need to double up on Databases? Or does postgres do something special?

No, that won't work unfortunately, the app is using Postgres' jsonb type.