8

I’m currently migrating all my stuff to docker :) working quite well so far but my Webserver (caddy) is driving me crazy

Comments
  • 2
    What's up? Maybe we can help?
  • 0
    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
  • 0
    PHP should be in the path. Errors and logs expedite interwebs debugging 😀
  • 0
    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
  • 0
    @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?
  • 1
    @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)
  • 2
    @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?
  • 2
    @alexbrooklyn hm... that could work. And I am using caddy because I prefer it over nginx
  • 2
    @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).
  • 0
    Okay fuck traefik. It randomly switches from working to 403‘s 😡
Add Comment