In the apache configuration file you can add:
CustomLog /dev/stdout
ErrorLog /dev/stderr
and to see the logs use the command below:
docker logs container_id
Source: log files – Apache in Docker: How do I “access.log”? – Server Fault
log files – Apache in Docker: How do I “access.log”? was last modified: February 5th, 2023 by