on-internet
← Community

How to enable logging for PHP-FPM inside a container

Stack Overflow ·

I have a multi-container WordPress setup consisting of php fpm + nginx + mariadb + redis. I need to be able to easily log in php fpm but do not know where the logs go to try to mount a host file on it for inspection or how to modify the log path. Using a php.ini in the root web directory does not seem to work. Here's my compose file: services: db: image: docker.io/library/mariadb:13.0.1-rc env_file: env.ini volumes: - dbvol:/var/lib/mysql - ./data:/docker-entrypoint-initdb.d:Z restart: always redis: image: docker.io/library/redis:latest web: image: docker.io/library/nginx:1.31.4 volumes: - ./.

Comments

Sign in or sign up to comment and upvote.

No comments yet.