Yeah why wouldn’t you want to know how things work!
I obviously don’t know you, but to me it seems that a majority of Docker users know how to spin up a container, but have zero knowledge of how to fix issues within their containers, or to create their own for their custom needs.
jeena@piefed.jeena.net 10 months ago
I did that first but that always required much more resources than doing it yourself because every docker starts it's own database and it's own nginx/apache server in addition to the software itself.
Now I have just one Postgresql database instance running with many users and databases on it. Also just one Nginx which does all the virtual host stuff in one central place. And both the things which I install with apt and manually are set up similarly.
I use one docker setup for firefox-sync but only because doing it manually is not documented and even the docker way I had to research for quite some time.
FlexibleToast@lemmy.world 10 months ago
What? No it doesn’t… You could still have just one postgresql database if you wanted just one. It is a big antithetical to microservices, but there is no reason you can do it.
jeena@piefed.jeena.net 10 months ago
But then you can't just use the containers provided by the service developers and have to figure out how to redo their container which in the end is more work than just run it manually.
WhyJiffie@sh.itjust.works 10 months ago
I have very rarely ran into such issues. can you give an example of something that works like that? it sounds to be very half-assed by the developer. only pihole comes to mind right now (except for the db part, because I think it uses sqlite)
notfromhere@lemmy.ml 10 months ago
Typically, the container image maintainer will provide environment variables which can override the database connection. This isn’t always the case but usually it’s as simple as updating those and ensuring network access between your containers.
FlexibleToast@lemmy.world 10 months ago
You absolutely can. It’s not like the developers of postgresql maintain a version of postgresql that only allows one db. You can connect to that db and add however many things you want to it.
jeena@piefed.jeena.net 10 months ago
Some examples:
and many more.