2 ms·
> I use Traefik for reverse proxy so that each docker-compose configures the proxy for the application I've used traefik v1 and v2 and I did not like it. This
by BrandoElFollito 4y ago
> I use Traefik for reverse proxy so that each docker-compose configures the proxy for the application
I've used traefik v1 and v2 and I did not like it. This is of course a personal opinion and I know it has its strengths. The fact that the config is though labels in docker-compose was putting me off, as well as some other things.
But I know it is good and used a lot.
Caddy is a web server that works great and has a well-thought configuration (especially v2). It is not dynamic by default (but there are some images that bring is dynamism à la traefik, and a REST API)
> Each app should run it's own self-contained everything. App, DB, Redis, you name it.
It depends on the setup. In my home environment, running several backends such as MariaDB, PostgreSQL etc. is too much. Yes, it is the right approach (including the fact that you do not have dependencies) but the mileage varies.
(ah, you've edited your answer to add some points so some of my comment is redundant)
- doubled112 4y agoSorry for the edits. One time I'll hit reply and have it say what I wanted it to, but this was not that time. The benefits of choice! I use Traefik because the config is through labels in docker-compose. I'm also running it at home. Ryzen 3 2200G (4c/4t), 32GB RAM, $100 Intel NVMe. Running roughly 40 containers in my docker VM, plus a few extra VMs. It's enough for my family and a couple of friends. You'd be amazed at how low impact a small PostgreSQL or MariaDB instance is. I/O is the largest bottle neck. You can feel an HDD holding you back with a bunch of DBs churning simultaneously. Of course, YMMV. If we're talking about a Raspberry Pi, disregard everything I've said. I'd run as few DB instances as possible too.
- BrandoElFollito 4y agoNo, you are right. The curse of premature optimization. I have an older Skylake with 25 GB RAM or so. Load is 0.51, RAM is at 5 GB or so... Plenty of space to grow but I am rather new to docker (~8 years as opposed to 30+ in standard Linux) so I did not do too much of research. I will go for really independent, contained blocks, it has nothing but advantages.