polaris64@lemmy.worldtoSelfhosted@lemmy.world•Switching from Apache to Caddy: how to use php-fpm?English
1·
1 year agoI use Caddy in production with a PHP-FPM WordPress Docker container in the same way as you describe. I have the site root mounted as a volume on to Caddy container at /var/www/html
and mounted in the WordPress PHP-FPM container under a separate path. In my Caddyfile I use the root
directive as you’ve shown but then override it under the php_fastcgi
directive to match the path in the WordPress container.
It’s possible with Mastodon (import/export feature), however it’s up to the service in question to support such a system. Lemmy doesn’t support this yet but I believe it’s a planned feature.