I am using the image richarvey/nginx-php-fpm:latest
(1.5.2) and I started a container based on this image and executed /bin/bash
inside.
There I :
- have installed composer
- created a new symfony4 project using
composer create-project symfony/website-skeleton my-project
have edited
my-project/config/packages/dev/monolog.yaml
to set :monolog: handlers: main: type: stream path: 'php://stderr' level: debug channels: ["!event"]
got the IP of my docker image using
docker inspect
- and dump my container logs using
docker logs -f <my container>
When I load http://<my container ip>/my-project/public
, I don't see the symfony debug logs in my container logs output.
Note : I see the nginx logs.
http://<my container ip>/my-project/public
, I don't see the symfony debug logs in my container logs output. Why do you expect logs to be added? It looks like you're trying to see files inpublic
, and files are probably served by your server, without Symfony./
and when you access it, you have debug logs output about which SF route is matched and so on ... Note : it is a SF4 install so thepublic
folder has anindex.php
file and not only the assets.public
is different on Symfony4. Could you please share the commands you use to launch the container? I would like to try by myself.docker run -d --name testfpm richarvey/nginx-php-fpm:latest
command. Then I do the steps described in my ticket inside the container ``docker exec -it testfpm -- /bin/bash`path: 'php://stderr'
? Could you please share a link that explain this usage? Maybe something is missing in this configuration.