Skip to content

Conversation

@robsontenorio
Copy link

@robsontenorio robsontenorio commented May 15, 2025

This is my first contribution. Let me know if something can be adjusted.

Targeting release/v3.6

I kept the default current values (/dev/stdout and /dev/stderr). But, honestly I would change it to the Nginx defaults.
Because, it is not useful to have all that logs on the main stdout. But if you don't think so, it is all good to be merged.

Usage

FROM serversideup ...
ENV NGINX_ACCESS_LOG=/var/log/nginx/access.log
ENV NGINX_ERROR_LOG=/var/log/nginx/error.log

@robsontenorio robsontenorio changed the title Adds NGINX_ACCESS_LOG and NGINX_ERROR_LOG Add NGINX_ACCESS_LOG and NGINX_ERROR_LOG May 15, 2025
@robsontenorio robsontenorio mentioned this pull request Aug 26, 2025
8 tasks
@jaydrogers jaydrogers deleted the branch serversideup:280-create-a-frankenphp-variation August 28, 2025 21:29
@jaydrogers jaydrogers closed this Aug 28, 2025
@jaydrogers
Copy link
Member

jaydrogers commented Aug 28, 2025

Sorry for the hiccup here, but could you try creating a new PR?

I had to move things in GitHub it automatically closed this PR. I don't see where I can update the branch into https://github.com/serversideup/docker-php/tree/280-create-a-frankenphp-variation

It won't let me change it when I press edit.

@jaydrogers jaydrogers reopened this Aug 28, 2025
@jaydrogers jaydrogers changed the base branch from release/v3.6 to 280-create-a-frankenphp-variation August 28, 2025 21:36
@jaydrogers
Copy link
Member

NVM, I got it. I accidentally deleted the source branch. That's why it closed. I will be reviewing this for 4.0 and will keep you posted 👍

Sorry for the confusion!

@jaydrogers jaydrogers moved this from Done to Todo in serversideup/php v4.0 Aug 28, 2025
@robsontenorio
Copy link
Author

@jaydrogers thanks for considering this for v4 ❤️

@jaydrogers
Copy link
Member

Thanks for your patience!

I made some updates so this is compatible with our new v4.0 release:

Just a note on not using stdout/stderr

By default, we keep these as stdout/stderr because in containerized environments anything that hits stdout/stderr be handled by the container orchestrator -- giving you a ton of flexibility and centralized control in log management, monitoring, etc

More on that here: https://docs.docker.com/engine/logging/

@jaydrogers jaydrogers merged commit 5b4f04c into serversideup:280-create-a-frankenphp-variation Oct 1, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in serversideup/php v4.0 Oct 1, 2025
@robsontenorio robsontenorio deleted the release/v3.6-NGINX_LOGS branch October 2, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants