TimWolla / docker-adminer

Database management in a single PHP file
https://hub.docker.com/_/adminer/
161 stars 70 forks source link

Reduce logging verbosity #97

Closed allen-ziegenfus closed 3 years ago

allen-ziegenfus commented 3 years ago

Is there a way to configure adminer to not produce these constant log entries? Right now it's very verbose and makes it difficult to find relevant logs from other services

[::ffff:10.138.0.35]:36682 Accepted
[::ffff:10.138.0.35]:36682 [200]: GET /
[::ffff:10.138.0.35]:36682 Closing
TimWolla commented 3 years ago

Are those health checks? For actual use you shouldn't have constant log entries.

Anyway: That's from PHP's internal development webserver (https://www.php.net/manual/en/features.commandline.webserver.php). I'm using that one in Adminer for simplicity and it's perfectly fine for use within your local development environment.

If you want to use this Docker image within your production cluster then I recommend to use the FastCGI version of the Adminer Docker image (adminer:fastcgi) in combination with a suitable FastCGI gateway (e.g. nginx). You can find proper nginx configurations in several issues within this repository.