Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I can’t figure out how to get php running in the Linux container. Up to now, i‘ve been using caddy on a windows server vm where I can specify the port for php-fpm which doesn’t work on Linux. I tried to use the unix socket but that’s not available either.
The base image is abiosoft\caddy just in case that helps anyone -
Well it is. I can use the php and php-fpm commands but when I want to host multiple sites in one container, I get an error message that phpfpm is not reachable
-
@dsteiner eh multiple websites? isn't the idea of docker that you do just one thing per container? it's not meant to treat it like a hypervisor vm?
-
@heyheni it is. But a even the smallest container needs resources and it’s pretty much waste of disk space and ram to run multiple instances of a Webserver for somewhat like 5 small websites with less than 100 DAUs (combined)
-
@dsteiner then use the webserver as a reverse proxy with the fastcgi interface?
Don't run multiple websites in one php fpm conainer, makes it unscalable.
Also, why not nginx? -
@alexbrooklyn hm... that could work. And I am using caddy because I prefer it over nginx
-
@alexbrooklyn I've been thinking about that aprorach for some time (speak hours) now and thats propably what I am going to do. after a short google search, i found a nice reverse proxy image based on docker which listens to labels (similar to how traefik works).
Related Rants
-
opengenus0Turn your usual habit into something that everyone praises
-
blol3Company: Govt says you should stay home to prevent spreading the disease. PLZ WFH. People start to WFH. VPN g...
-
Fast-Nop4The best part about home office isn't that you can fart without co-workers getting annoyed. It's that you can ...
I’m currently migrating all my stuff to docker :) working quite well so far but my Webserver (caddy) is driving me crazy
rant
wk201