diff --git a/AGENTS.md b/AGENTS.md index 5fb4dc907..2e2e6121e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -63,7 +63,7 @@ Where the documentation lives: | `CONTRIBUTING.md` | Build process: the generated files and `make generate`, the CI and `make check`, building and testing locally, the image tests, PHP extension builds | | `docs/README.md` | Image overview, platforms and nightly updates, how the images build on each other (Mermaid diagram) | | `docs/environment-variables.md` | Every environment variable with its default and effect; uploads and long requests | -| `docs/customization.md` | Commands, scripts at start and build time, tools for your Dockerfile, services, cron jobs and their time zone, healthcheck, configuration files and placeholders, supervisord, locales, application user and changing its UID | +| `docs/customization.md` | Commands, scripts at start and build time, tools for your Dockerfile, services and their logs, cron jobs, their output and their time zone, healthcheck, configuration files and placeholders, supervisord, locales, application user and changing its UID | | `docs/images/*.md` | One page per image family: tags, base image, services, settings, development variant. `php.md` also has Debian or Alpine, production, installing extensions, mail and Xdebug with an IDE | | `docs/known-issues.md` | Options and tools that do not work, with affected images and workaround; migration from older images | | `docs/discontinued-images.md` | Replacements for images and tags that are no longer built (`bootstrap`, `base`, `base-app`, `dockerfile-build-env`, `nginx`, `apache`, `storage`, `vsftp`, `ssh`) or deprecated (`php-official`) | diff --git a/ci/image-tests/Checks/ContainerEnvironmentChecks.php b/ci/image-tests/Checks/ContainerEnvironmentChecks.php index 04fc34062..8588f64c5 100644 --- a/ci/image-tests/Checks/ContainerEnvironmentChecks.php +++ b/ci/image-tests/Checks/ContainerEnvironmentChecks.php @@ -25,6 +25,9 @@ */ trait ContainerEnvironmentChecks { + /** Starts syslog-ng in a container of an image that does not start it */ + private const string START_SYSLOG = 'docker-service enable syslog && docker-service start syslog'; + /** * TZ=Europe/Berlin: date shows the time zone, and supervisord writes local time to the container log. */ @@ -89,7 +92,7 @@ public function testSyslogMessagesReachTheFileFromTheEnvironment(): void { $container = $this->environmentContainer(); if (!in_array('syslog', self::services(), true)) { - $this->assertCommandSucceeds('docker-service enable syslog && docker-service start syslog', $container); + $this->assertCommandSucceeds(self::START_SYSLOG, $container); } $this->eventually(function () use ($container): void { @@ -98,6 +101,44 @@ public function testSyslogMessagesReachTheFileFromTheEnvironment(): void }); } + /** + * What a service writes to its stdout and stderr reaches the files of LOG_STDOUT and LOG_STDERR: supervisord writes + * it there. The hook of syslog-ng from Hooks/ writes a line to each. The environment container starts syslog-ng + * where the image does not. At the log level trace of SERVICE_SUPERVISOR_OPTS, supervisord also repeats the output + * of the services in its own messages in the container log, so the container log is not checked here. + */ + public function testServiceOutputReachesTheFilesFromTheEnvironment(): void + { + $container = $this->environmentContainer(); + if (!in_array('syslog', self::services(), true)) { + $this->assertCommandSucceeds(self::START_SYSLOG, $container); + } + + $this->eventually(function () use ($container): void { + self::assertStringContainsString('image-test: the hook of syslog-ng on stdout', $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDOUT'], $container)); + self::assertStringContainsString('image-test: the hook of syslog-ng on stderr', $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDERR'], $container)); + }); + } + + /** + * Without LOG_STDOUT and LOG_STDERR, what a service writes to its stdout and stderr stays in the container log, as + * before supervisord wrote it to /docker.stdout and /docker.stderr: the hook of syslog-ng from Hooks/ writes a line + * to each. In a container of its own, which starts syslog-ng where the image does not. + */ + public function testServiceOutputReachesTheContainerLogWithoutTheEnvironment(): void + { + $container = $this->startTestContainer('service-output'); + if (!in_array('syslog', self::services(), true)) { + $this->assertCommandSucceeds(self::START_SYSLOG, $container); + } + + $this->eventually(function () use ($container): void { + [$stdout, $stderr] = $container->logStreams(); + self::assertStringContainsString('image-test: the hook of syslog-ng on stdout', $stdout); + self::assertStringContainsString('image-test: the hook of syslog-ng on stderr', $stderr); + }); + } + /** * /docker.stdout and /docker.stderr, where the services of the image write their logs, point to the files of * LOG_STDOUT and LOG_STDERR. diff --git a/ci/image-tests/Checks/NginxEnvironmentChecks.php b/ci/image-tests/Checks/NginxEnvironmentChecks.php index 2ef9e9ab8..3303bd1d2 100644 --- a/ci/image-tests/Checks/NginxEnvironmentChecks.php +++ b/ci/image-tests/Checks/NginxEnvironmentChecks.php @@ -52,4 +52,23 @@ public function testNginxLogsToTheFilesFromTheEnvironment(): void self::assertMatchesRegularExpression('#\[error\] .*image-test-forbidden\.html" failed \(13: Permission denied\)#', $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDERR'], $container)); }); } + + /** + * Nginx writes the messages that belong to no server, those of its main error log, to LOG_STDERR, not to LOG_STDOUT: + * the master process logs that a worker process ended on SIGKILL. + */ + public function testNginxMainErrorLogToTheFileFromTheEnvironment(): void + { + $container = $this->environmentContainer(); + $this->request('http://localhost/', container: $container); + $this->assertCommandSucceeds( + 'for process in /proc/[0-9]*; do if tr "\\000" " " < $process/cmdline 2>/dev/null | grep -q "^nginx: worker process"; then kill -9 ${process#/proc/}; break; fi; done', + $container, + ); + $exited = '#\[alert\] .*worker process \d+ exited on signal 9#'; + $this->eventually(function () use ($container, $exited): void { + self::assertMatchesRegularExpression($exited, $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDERR'], $container)); + }); + self::assertDoesNotMatchRegularExpression($exited, $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDOUT'], $container)); + } } diff --git a/ci/image-tests/Checks/SshChecks.php b/ci/image-tests/Checks/SshChecks.php index 691da54fe..2ef4cd24c 100644 --- a/ci/image-tests/Checks/SshChecks.php +++ b/ci/image-tests/Checks/SshChecks.php @@ -4,13 +4,14 @@ namespace Webdevops\Build\ImageTests\Checks; +use Webdevops\Build\ImageTests\Docker\ListeningSockets; use Webdevops\Build\ImageTests\ImageTestCase; use function implode; /** * The SSH server of the development images runs, listens on port 22 and lets root and the application user log in with - * the password dev. + * the password dev. Its log reaches the file of LOG_STDERR. * * @phpstan-require-extends ImageTestCase */ @@ -37,4 +38,22 @@ public function testSshLoginWithThePasswordDev(): void ])); self::assertSame([0, "application\n"], [$result->exitCode, $result->stdout], $result->describe()); } + + /** + * sshd logs to its stderr, which supervisord writes to the file of LOG_STDERR in the environment container, where + * sshd listens on port 2222 (SERVICE_SSH_OPTS). Through syslog, its messages were lost: syslog-ng drops the facility + * auth. + */ + public function testSshLogsToTheFileFromTheEnvironment(): void + { + $container = $this->environmentContainer(); + $this->eventually(function () use ($container): void { + self::assertTrue(ListeningSockets::read($container)->isListening(2222), 'sshd should listen on port 2222'); + }); + $login = $this->execute('ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 2222 image-test-nobody@127.0.0.1 true', $container); + self::assertNotSame(0, $login->exitCode, $login->describe()); + $this->eventually(function () use ($container): void { + self::assertMatchesRegularExpression('/Invalid user image-test-nobody from 127\.0\.0\.1 /', $this->stdout('cat ' . static::ENVIRONMENT['LOG_STDERR'], $container)); + }); + } } diff --git a/ci/image-tests/Hooks/opt/docker/bin/service.d/syslog-ng.d/50-image-test.sh b/ci/image-tests/Hooks/opt/docker/bin/service.d/syslog-ng.d/50-image-test.sh index d1d87a6e8..27927f0b4 100644 --- a/ci/image-tests/Hooks/opt/docker/bin/service.d/syslog-ng.d/50-image-test.sh +++ b/ci/image-tests/Hooks/opt/docker/bin/service.d/syslog-ng.d/50-image-test.sh @@ -1,3 +1,6 @@ # Image tests: marks that a service sourced the hooks in its directory, and as which user, see ServiceChecks mkdir -p /tmp/image-tests/hooks id -un > "/tmp/image-tests/hooks/$(basename "$(dirname "${BASH_SOURCE[0]}")")" +# and writes a line to the stdout and one to the stderr of the service, see ContainerEnvironmentChecks +echo "image-test: the hook of syslog-ng on stdout" +echo "image-test: the hook of syslog-ng on stderr" >&2 diff --git a/docker/php-apache-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-apache-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-apache-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-apache-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.2-alpine/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.2-alpine/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.2-alpine/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.2-alpine/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.2/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.2/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.2/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.2/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.3-alpine/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.3-alpine/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.3-alpine/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.3-alpine/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.3/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.3/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.3/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.3/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.4-alpine/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.4-alpine/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.4-alpine/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.4-alpine/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.4/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.4/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.4/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.4/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.5-alpine/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.5-alpine/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.5-alpine/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.5-alpine/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.5/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.5/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.5/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.5/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.6-alpine/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.6-alpine/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.6-alpine/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.6-alpine/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-apache/8.6/conf/etc/supervisor.d/apache.conf b/docker/php-apache/8.6/conf/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/docker/php-apache/8.6/conf/etc/supervisor.d/apache.conf +++ b/docker/php-apache/8.6/conf/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.2-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.2/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.3-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.3/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.4-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.4/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.5-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.5/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.6-alpine/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf b/docker/php-nginx-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/docker/php-nginx-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf +++ b/docker/php-nginx-dev/8.6/conf/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.2-alpine/conf/etc/nginx/nginx.conf b/docker/php-nginx/8.2-alpine/conf/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/docker/php-nginx/8.2-alpine/conf/etc/nginx/nginx.conf +++ b/docker/php-nginx/8.2-alpine/conf/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/docker/php-nginx/8.2-alpine/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.2-alpine/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.2-alpine/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.2-alpine/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.2/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.2/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.2/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.2/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.3-alpine/conf/etc/nginx/nginx.conf b/docker/php-nginx/8.3-alpine/conf/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/docker/php-nginx/8.3-alpine/conf/etc/nginx/nginx.conf +++ b/docker/php-nginx/8.3-alpine/conf/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/docker/php-nginx/8.3-alpine/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.3-alpine/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.3-alpine/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.3-alpine/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.3/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.3/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.3/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.3/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.4-alpine/conf/etc/nginx/nginx.conf b/docker/php-nginx/8.4-alpine/conf/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/docker/php-nginx/8.4-alpine/conf/etc/nginx/nginx.conf +++ b/docker/php-nginx/8.4-alpine/conf/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/docker/php-nginx/8.4-alpine/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.4-alpine/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.4-alpine/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.4-alpine/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.4/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.4/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.4/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.4/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.5-alpine/conf/etc/nginx/nginx.conf b/docker/php-nginx/8.5-alpine/conf/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/docker/php-nginx/8.5-alpine/conf/etc/nginx/nginx.conf +++ b/docker/php-nginx/8.5-alpine/conf/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/docker/php-nginx/8.5-alpine/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.5-alpine/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.5-alpine/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.5-alpine/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.5/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.5/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.5/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.5/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.6-alpine/conf/etc/nginx/nginx.conf b/docker/php-nginx/8.6-alpine/conf/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/docker/php-nginx/8.6-alpine/conf/etc/nginx/nginx.conf +++ b/docker/php-nginx/8.6-alpine/conf/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/docker/php-nginx/8.6-alpine/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.6-alpine/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.6-alpine/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.6-alpine/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php-nginx/8.6/conf/etc/supervisor.d/nginx.conf b/docker/php-nginx/8.6/conf/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/docker/php-nginx/8.6/conf/etc/supervisor.d/nginx.conf +++ b/docker/php-nginx/8.6/conf/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/bin/service.d/ssh.sh b/docker/php/8.2-alpine/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.2-alpine/conf/bin/service.d/ssh.sh +++ b/docker/php/8.2-alpine/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/cron.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/postfix.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/ssh.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2-alpine/conf/etc/supervisor.d/syslog.conf b/docker/php/8.2-alpine/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.2-alpine/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.2-alpine/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/bin/service.d/ssh.sh b/docker/php/8.2/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.2/conf/bin/service.d/ssh.sh +++ b/docker/php/8.2/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.2/conf/etc/supervisor.d/cron.conf b/docker/php/8.2/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.2/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.2/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/etc/supervisor.d/postfix.conf b/docker/php/8.2/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/etc/supervisor.d/ssh.conf b/docker/php/8.2/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.2/conf/etc/supervisor.d/syslog.conf b/docker/php/8.2/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.2/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.2/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/bin/service.d/ssh.sh b/docker/php/8.3-alpine/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.3-alpine/conf/bin/service.d/ssh.sh +++ b/docker/php/8.3-alpine/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/cron.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/postfix.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/ssh.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3-alpine/conf/etc/supervisor.d/syslog.conf b/docker/php/8.3-alpine/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.3-alpine/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.3-alpine/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/bin/service.d/ssh.sh b/docker/php/8.3/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.3/conf/bin/service.d/ssh.sh +++ b/docker/php/8.3/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.3/conf/etc/supervisor.d/cron.conf b/docker/php/8.3/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.3/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.3/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/etc/supervisor.d/postfix.conf b/docker/php/8.3/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/etc/supervisor.d/ssh.conf b/docker/php/8.3/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.3/conf/etc/supervisor.d/syslog.conf b/docker/php/8.3/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.3/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.3/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/bin/service.d/ssh.sh b/docker/php/8.4-alpine/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.4-alpine/conf/bin/service.d/ssh.sh +++ b/docker/php/8.4-alpine/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/cron.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/postfix.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/ssh.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4-alpine/conf/etc/supervisor.d/syslog.conf b/docker/php/8.4-alpine/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.4-alpine/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.4-alpine/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/bin/service.d/ssh.sh b/docker/php/8.4/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.4/conf/bin/service.d/ssh.sh +++ b/docker/php/8.4/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.4/conf/etc/supervisor.d/cron.conf b/docker/php/8.4/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.4/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.4/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/etc/supervisor.d/postfix.conf b/docker/php/8.4/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/etc/supervisor.d/ssh.conf b/docker/php/8.4/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.4/conf/etc/supervisor.d/syslog.conf b/docker/php/8.4/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.4/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.4/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/bin/service.d/ssh.sh b/docker/php/8.5-alpine/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.5-alpine/conf/bin/service.d/ssh.sh +++ b/docker/php/8.5-alpine/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/cron.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/postfix.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/ssh.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5-alpine/conf/etc/supervisor.d/syslog.conf b/docker/php/8.5-alpine/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.5-alpine/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.5-alpine/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/bin/service.d/ssh.sh b/docker/php/8.5/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.5/conf/bin/service.d/ssh.sh +++ b/docker/php/8.5/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.5/conf/etc/supervisor.d/cron.conf b/docker/php/8.5/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.5/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.5/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/etc/supervisor.d/postfix.conf b/docker/php/8.5/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/etc/supervisor.d/ssh.conf b/docker/php/8.5/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.5/conf/etc/supervisor.d/syslog.conf b/docker/php/8.5/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.5/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.5/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/bin/service.d/ssh.sh b/docker/php/8.6-alpine/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.6-alpine/conf/bin/service.d/ssh.sh +++ b/docker/php/8.6-alpine/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/cron.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/postfix.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/ssh.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6-alpine/conf/etc/supervisor.d/syslog.conf b/docker/php/8.6-alpine/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.6-alpine/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.6-alpine/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/bin/service.d/ssh.sh b/docker/php/8.6/conf/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/docker/php/8.6/conf/bin/service.d/ssh.sh +++ b/docker/php/8.6/conf/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/docker/php/8.6/conf/etc/supervisor.d/cron.conf b/docker/php/8.6/conf/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/cron.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/etc/supervisor.d/dnsmasq.conf b/docker/php/8.6/conf/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/dnsmasq.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/etc/supervisor.d/php-fpm.conf b/docker/php/8.6/conf/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/php-fpm.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/etc/supervisor.d/postfix.conf b/docker/php/8.6/conf/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/postfix.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/etc/supervisor.d/ssh.conf b/docker/php/8.6/conf/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/ssh.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docker/php/8.6/conf/etc/supervisor.d/syslog.conf b/docker/php/8.6/conf/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/docker/php/8.6/conf/etc/supervisor.d/syslog.conf +++ b/docker/php/8.6/conf/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/docs/README.md b/docs/README.md index 4fed0624d..a572be78f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -31,7 +31,7 @@ Documentation for the `webdevops/*` Docker images. It describes the images as th ## Topics - [Environment variables](environment-variables.md): every setting, with defaults, including [uploads and long requests](environment-variables.md#uploads-and-long-requests) -- [Customization](customization.md): commands, scripts at start and build time, tools for your Dockerfile, services, cron jobs, healthcheck, configuration files, locales, the application user +- [Customization](customization.md): commands, scripts at start and build time, tools for your Dockerfile, services and their logs, cron jobs, healthcheck, configuration files, locales, the application user - PHP images: [PHP extensions per tag](images/php.md#php-extensions), [Debian or Alpine](images/php.md#debian-or-alpine), [production](images/php.md#production), [installing more extensions](images/php.md#installing-more-extensions), [mail](images/php.md#mail), [Xdebug with an IDE](images/php.md#xdebug-with-an-ide) - [Known issues](known-issues.md): options that do not work, workarounds, migration from older images - [Replacing discontinued images](discontinued-images.md): what to use instead of `php-official`, `bootstrap`, `base`, `base-app`, `dockerfile-build-env`, `nginx`, `apache`, `storage`, `vsftp` and `ssh` diff --git a/docs/customization.md b/docs/customization.md index 3cd24f5d5..cfad82bc0 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -143,6 +143,23 @@ Before a service starts, its start script sources every `*.sh` file in `/opt/doc Options for each service are set with environment variables, see [Services](environment-variables.md#services). +### Logs + +The services write their logs to the container log, which `docker compose logs` shows: access logs and the messages of syslog to its stdout, error logs to its stderr. They write to `/docker.stdout` and `/docker.stderr`, which point to the stdout and stderr of the container, or to the files of `LOG_STDOUT` and `LOG_STDERR`, see [Container](environment-variables.md#container). + +| Service | Log | +| --- | --- | +| `nginx`, `apache` | Access log to `/docker.stdout`, error log to `/docker.stderr`, also of the virtual host for port 443 | +| `php-fpm` | Access log to `/docker.stdout`; its own messages, the errors of the PHP scripts and the [slow log](known-issues.md#slow-log-of-php-fpm) to `/docker.stderr` | +| `cron` | Its own messages to syslog | +| `postfix`, `dnsmasq` | To syslog | +| `syslog` | syslog-ng writes the messages of syslog to `/docker.stdout`, with `[SYSLOG]` in front. It drops those of the facilities `auth` and `authpriv`, for example of `su`. What a service sends before syslog-ng listens, in about the first second after the start, is lost, for example the start messages of cron. | +| `ssh`, `blackfire-agent` | To their stderr | + +What the services print to their stdout and stderr, for example the output of their [hooks](#service-hooks) or of cron jobs in Alpine, supervisord writes to `/docker.stdout` and `/docker.stderr`. The messages of supervisord itself, for example `spawned: 'nginxd'`, always go to the container log; at the log level `debug` (`SERVICE_SUPERVISOR_OPTS=--loglevel=debug`) they also repeat what the services print. + +Without `syslog`, for example after `docker-service disable syslog`, the messages of `cron`, `postfix` and `dnsmasq` are lost. + ## Cron jobs `docker-cronjob` adds a cron job for each argument. Lines use the system crontab format, including the user, and cron runs the job as that user: @@ -334,7 +351,7 @@ All images except `toolbox`. | `/opt/docker/etc/supervisor.conf` | Main configuration; includes `supervisor.d/*.conf` | | `/opt/docker/etc/supervisor.d/.conf` | One group per service with one program, for example the group `nginx` with the program `nginxd` | -Add your own program as a new file in `supervisor.d/`. In a running container, `supervisorctl` controls the services. Address a program as `:`, or all programs of a group as `:`; `supervisorctl restart nginx` fails with `no such process`. +Add your own program as a new file in `supervisor.d/`. Like the services of the image, it should write its output with `stdout_logfile=/docker.stdout` and `stderr_logfile=/docker.stderr`, each with `stdout_logfile_maxbytes=0` and `stderr_logfile_maxbytes=0`, see [Logs](#logs). In a running container, `supervisorctl` controls the services. Address a program as `:`, or all programs of a group as `:`; `supervisorctl restart nginx` fails with `no such process`. ```sh docker compose exec app supervisorctl status diff --git a/docs/environment-variables.md b/docs/environment-variables.md index bc8fba1fb..809789753 100644 --- a/docs/environment-variables.md +++ b/docs/environment-variables.md @@ -35,8 +35,8 @@ Images: `php-*`. | Variable | Default | Effect | | --- | --- | --- | | `CLI_SCRIPT` | not set | Command the `cli` entrypoint runs as `APPLICATION_USER`. See [Customization](customization.md#commands). | -| `LOG_STDOUT` | container stdout | File that `/docker.stdout` points to. Nginx, Apache and PHP-FPM write their access logs there, syslog-ng the messages of the services, for example of cron and Postfix. | -| `LOG_STDERR` | container stderr | File that `/docker.stderr` points to. Nginx and Apache write their error logs there, PHP-FPM its own messages and the errors of the PHP scripts it runs. `php.error_log` gives the PHP errors of PHP-FPM and the PHP CLI a file of their own instead, in a directory that `application` may write to, for example `/app`. | +| `LOG_STDOUT` | container stdout | File that `/docker.stdout` points to. Nginx, Apache and PHP-FPM write their access logs there, syslog-ng the messages that the services send to syslog, for example of cron and Postfix. supervisord writes there what the services print to their stdout, for example in Alpine the output of cron jobs. The messages of supervisord itself, for example `spawned: 'nginxd'`, stay in the container log. See [Logs](customization.md#logs). | +| `LOG_STDERR` | container stderr | File that `/docker.stderr` points to. Nginx and Apache write their error logs there, PHP-FPM its own messages and the errors of the PHP scripts it runs, and supervisord what the services print to their stderr, for example the messages of sshd and of the Blackfire agent. `php.error_log` gives the PHP errors of PHP-FPM and the PHP CLI a file of their own instead, in a directory that `application` may write to, for example `/app`. | | `TZ` | not set (UTC) | Time zone of the container, for example `Europe/Berlin`. It applies to `date`, cron and the time stamps supervisord writes to the container log. PHP uses `PHP_DATE_TIMEZONE` instead, see [Time zone](customization.md#time-zone). | ## Web server @@ -183,7 +183,7 @@ Each service reads its options when it starts. A service only runs if it is enab | `SERVICE_SUPERVISOR_OPTS` | Extra arguments for `supervisord`, for example `--loglevel=debug`. | | `SERVICE_SYSLOG_OPTS` | Extra arguments for `syslog-ng`. | | `SERVICE_CRON_OPTS` | Extra arguments for `cron -f` (Debian) or `crond -f` (Alpine). | -| `SERVICE_SSH_OPTS` | Extra arguments for `sshd -D`. | +| `SERVICE_SSH_OPTS` | Extra arguments for `sshd -D -e`. With `-e`, sshd logs to its stderr, see [Logs](customization.md#logs). | | `SERVICE_DNSMASQ_OPTS` | Extra arguments for `dnsmasq`. | | `SERVICE_DNSMASQ_USER` | User `dnsmasq` runs as. Default: `root`. | | `SERVICE_NGINX_OPTS` | Extra arguments for `nginx`, appended after `-g 'daemon off;'`. | diff --git a/docs/known-issues.md b/docs/known-issues.md index 1fc1f62f1..5a5b2d572 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -22,6 +22,22 @@ These options and tools are part of the images but do not work, or work only in - **Images:** `php-*` with the Debian tag `8.6`. - **Instead:** Write the repository to a file in `/etc/apt/sources.list.d/`, for example `RUN echo "deb http://deb.debian.org/debian trixie-backports main" > /etc/apt/sources.list.d/backports.list`. +### Slow log of PHP-FPM + +- **Effect:** With `fpm.pool.request_slowlog_timeout`, for example `5s`, PHP-FPM logs that a request is slow, but not where it is: Docker does not give a container the capability `SYS_PTRACE`, which PHP-FPM needs for the backtrace. The log shows `ERROR: failed to ptrace(ATTACH) child …: Operation not permitted (1)` instead. +- **Images:** `php-*`. +- **Instead:** Add the capability to the container: + + ```yaml + services: + app: + image: webdevops/php-nginx:8.5 + cap_add: + - SYS_PTRACE + environment: + fpm.pool.request_slowlog_timeout: 5s + ``` + ### Composer 1 on PHP 8.4 to 8.6 - **Effect:** With `COMPOSER_VERSION=1`, every Composer run prints deprecation notices. From PHP 8.5 on, Composer 1 also cannot download packages: commands such as `composer require` stop with `Uncaught TypeError: stream_context_create(): Argument #1 ($options) must be an array with valid callbacks as values`. diff --git a/provisioning/apache/general/etc/supervisor.d/apache.conf b/provisioning/apache/general/etc/supervisor.d/apache.conf index 12a6f86f7..3d09bff7d 100644 --- a/provisioning/apache/general/etc/supervisor.d/apache.conf +++ b/provisioning/apache/general/etc/supervisor.d/apache.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/base/general/bin/service.d/ssh.sh b/provisioning/base/general/bin/service.d/ssh.sh index f01e87ab3..5e2a0036d 100644 --- a/provisioning/base/general/bin/service.d/ssh.sh +++ b/provisioning/base/general/bin/service.d/ssh.sh @@ -7,4 +7,6 @@ source /opt/docker/bin/config.sh includeScriptDir "/opt/docker/bin/service.d/ssh.d/" -exec /usr/sbin/sshd -D $SERVICE_SSH_OPTS +# -e: sshd logs to its stderr, which supervisord writes to the container log, instead of to syslog, which does not run in +# every image and where syslog-ng drops the facility auth of sshd +exec /usr/sbin/sshd -D -e $SERVICE_SSH_OPTS diff --git a/provisioning/base/general/etc/supervisor.d/cron.conf b/provisioning/base/general/etc/supervisor.d/cron.conf index ef0a71678..d3a979bdc 100644 --- a/provisioning/base/general/etc/supervisor.d/cron.conf +++ b/provisioning/base/general/etc/supervisor.d/cron.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/base/general/etc/supervisor.d/dnsmasq.conf b/provisioning/base/general/etc/supervisor.d/dnsmasq.conf index 9832ffca7..56969c944 100644 --- a/provisioning/base/general/etc/supervisor.d/dnsmasq.conf +++ b/provisioning/base/general/etc/supervisor.d/dnsmasq.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/base/general/etc/supervisor.d/postfix.conf b/provisioning/base/general/etc/supervisor.d/postfix.conf index 9e26baaa2..33a60cac8 100644 --- a/provisioning/base/general/etc/supervisor.d/postfix.conf +++ b/provisioning/base/general/etc/supervisor.d/postfix.conf @@ -11,7 +11,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/base/general/etc/supervisor.d/ssh.conf b/provisioning/base/general/etc/supervisor.d/ssh.conf index 0ecd798d6..74f376a18 100644 --- a/provisioning/base/general/etc/supervisor.d/ssh.conf +++ b/provisioning/base/general/etc/supervisor.d/ssh.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs=0 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/base/general/etc/supervisor.d/syslog.conf b/provisioning/base/general/etc/supervisor.d/syslog.conf index 20d1e238c..6c706c2bc 100644 --- a/provisioning/base/general/etc/supervisor.d/syslog.conf +++ b/provisioning/base/general/etc/supervisor.d/syslog.conf @@ -7,7 +7,8 @@ command = /opt/docker/bin/service.d/syslog-ng.sh process_name=%(program_name)s autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/nginx/alpine/etc/nginx/nginx.conf b/provisioning/nginx/alpine/etc/nginx/nginx.conf index b9cb4ebc4..981590f32 100644 --- a/provisioning/nginx/alpine/etc/nginx/nginx.conf +++ b/provisioning/nginx/alpine/etc/nginx/nginx.conf @@ -4,7 +4,7 @@ user nginx; worker_processes auto; -error_log /docker.stdout; +error_log /docker.stderr; pid /run/nginx.pid; events { diff --git a/provisioning/nginx/general/etc/supervisor.d/nginx.conf b/provisioning/nginx/general/etc/supervisor.d/nginx.conf index 657bf499b..afcdbf5aa 100644 --- a/provisioning/nginx/general/etc/supervisor.d/nginx.conf +++ b/provisioning/nginx/general/etc/supervisor.d/nginx.conf @@ -8,7 +8,8 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/php-dev/general/etc/supervisor.d/blackfire-agent.conf b/provisioning/php-dev/general/etc/supervisor.d/blackfire-agent.conf index 008644ac9..e7a575e64 100644 --- a/provisioning/php-dev/general/etc/supervisor.d/blackfire-agent.conf +++ b/provisioning/php-dev/general/etc/supervisor.d/blackfire-agent.conf @@ -10,7 +10,8 @@ process_name=%(program_name)s startsecs = 5 autostart = false autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0 diff --git a/provisioning/php/general/etc/supervisor.d/php-fpm.conf b/provisioning/php/general/etc/supervisor.d/php-fpm.conf index 5781f5b0a..1983c337c 100644 --- a/provisioning/php/general/etc/supervisor.d/php-fpm.conf +++ b/provisioning/php/general/etc/supervisor.d/php-fpm.conf @@ -8,8 +8,9 @@ process_name=%(program_name)s startsecs = 0 autostart = true autorestart = true -stdout_logfile=/dev/stdout +; the container log, or the files of LOG_STDOUT and LOG_STDERR +stdout_logfile=/docker.stdout stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr +stderr_logfile=/docker.stderr stderr_logfile_maxbytes=0