How can I do a PHPFPM+Nginx deployment for devspace?
Actually, I'm working with PHP-Apache and have this devspace.yaml
[...]
deployments:
- name: panel
helm:
componentChart: true
values:
containers:
- image: registry.digitalocean.com/mycompany/myapp
service:
ports:
- port: 80
ingress:
rules:
- host: "mydomain.com.ar"
My Dockerfile is like
FROM php:7.4.4-apache
[...]
EXPOSE 80
CMD ["apache2-foreground"]
All is working fine and Host is registered on Ingress. But, I like to upgrade from PHPApache to PHP-FPM + Nginx.
I change my Dockerfile from FROM php:7.4.4-apache
to FROM php:7.4.4-fpm
and EXPOSE
and COMMAND
are removed. But now? Particular configurations for PHP and NGinx are no neccesary now.
Then, how can I add nginx service to devspace.yaml
and connect to php-fpm?
devspace.yaml
:nginx.conf
: