Skip to content

Jk/trung tâm thông báo dto#395

Open
vinh2852k3-spec wants to merge 2 commits intopi-apps:mainfrom
vinh2852k3-spec:jk/notification-center-dto
Open

Jk/trung tâm thông báo dto#395
vinh2852k3-spec wants to merge 2 commits intopi-apps:mainfrom
vinh2852k3-spec:jk/notification-center-dto

Conversation

@vinh2852k3-spec
Copy link

REVERSE PROXY IMAGE

FROM nginx:1.23.1

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y certbot python3-certbot-nginx

COPY ./docker/nginx.conf.template /nginx.conf.template
COPY ./docker/nginx-ssl.conf.template /nginx-ssl.conf.template
COPY ./docker/entrypoint.sh /var/entrypoint.sh

RUN chmod +x /var/entrypoint.sh

Default nginx configuration has only one worker process running. "Auto" is a better setting for scalability.

Commenting out any existing setting, and adding the desired one is more robust against new docker image versions.

RUN sed -i "s/worker_processes/#worker_processes/" /etc/nginx/nginx.conf &&
echo "worker_processes auto;" >> /etc/nginx/nginx.conf &&
echo "worker_rlimit_nofile 16384;" >> /etc/nginx/nginx.conf

Override the default command of the base image:

See: https://github.com/nginxinc/docker-nginx/blob/1.15.7/mainline/stretch/Dockerfile#L99

CMD ["/var/entrypoint

Jan Kozinski and others added 2 commits November 23, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant