[bitnami/php-fpm] nginx & php-fpm images with podman compose - nginx container crashes on start #65285
Labels
php-fpm
solved
stale
15 days without activity
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
docker.io/bitnami/php-fpm:8.3.6
What architecture are you using?
amd64
What steps will reproduce the bug?
compose.yml
nginx.conf
What is the expected behavior?
To have both the nginx and phpfpm container in the podman compose to run without any issues
What do you see instead?
This is the error I get from the nginx container that causes the container to crash when it starts.
Additional information
I am using podman cli 4.8.2 with podman desktop on Manjaro. I am trying to create a nginx container with phpfpm using the bitnami images from docker.io. I followed the instructions bitnami/nginx image and got it working with my own nginx configuration file. However I did follow the instructions to make bitnami/php-fpm work with bitnami/nginx and I cannot get it to work with podman compose.
Something to do with the nginx.conf file with the PHP configuration? However I did make sure it fastcgi_pass phpfpm:9000;
To my understanding it is due to Podman's use of networks. The nginx container is unable to communicate to the phpfpm container. I have fiddle around with the network setup in the compose file but setting the two containers to share the host network which did allow the nginx container to start up and stay running but when I go to a PHP page in my browser on localhost:8080, it will not load the PHP web page.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: