podify-org/podify

Fully-contained docker image

reesericci opened this issue · 14 comments

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

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.

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.

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.

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.

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.

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.

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

@maxhollmann any comments?

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 ;)

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!

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?

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.