Nginx urgent updates for old image / fresh nginx version while no new nginx-proxy

Author: QuAzICreated Sep 20, 2026Updated Sep 21, 2026

While I don't see fresh updates dependabot mentioned in #2734 what is the best way to update Nginx in alredy working system? At the moment my docker-compose.yml looks like

yaml
services:
  nginx-proxy:
        container_name: nginx-proxy
        #image: nginxproxy/nginx-proxy:1.11.6
        build:
          context: .
          dockerfile_inline: |
            FROM nginxproxy/nginx-proxy:1.11.6

            RUN apt-get update && \
                apt-get install -y --no-install-recommends ca-certificates curl gnupg && \
                mkdir -p /etc/apt/keyrings && \
                curl -fsSL https://nginx.org/keys/nginx_signing.key | \
                  gpg --batch --dearmor --yes -o /etc/apt/keyrings/nginx-archive-keyring.gpg && \
                echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] \
                  http://nginx.org/packages/mainline/debian trixie nginx" \
                  > /etc/apt/sources.list.d/nginx.list && \
                apt-get update && \
                apt-get install -y --no-install-recommends nginx && \
                rm -rf /var/lib/apt/lists/*
        ports:
          - "0.0.0.0:80:80"
          - "0.0.0.0:443:443/tcp"
          - "0.0.0.0:443:443/udp"
          - "[::]:80:80"
          - "[::]:443:443/tcp"
          - "[::]:443:443/udp"
        volumes:
            - ./vhost.d:/etc/nginx/vhost.d
            - ./certs:/etc/nginx/certs:ro
            - html:/usr/share/nginx/html
            - /var/run/docker.sock:/tmp/docker.sock:ro
            - ./conf.d/client_max_body_size.conf:/etc/nginx/conf.d/client_max_body_size.conf:ro
            - ./conf.d/upstream.conf:/etc/nginx/conf.d/upstream.conf:ro
        environment:
          - ENABLE_HTTP3=true
          - TRUST_DOWNSTREAM_PROXY=false
        restart: always
        networks:
          - default

  nginx-proxy-letsencrypt:
        container_name: nginx-proxy-letsencrypt
        image: nginxproxy/acme-companion:2.8.1
        volumes:
            - acme:/etc/acme.sh
            - ./vhost.d:/etc/nginx/vhost.d
            - ./certs:/etc/nginx/certs:rw
            - html:/usr/share/nginx/html
            - /var/run/docker.sock:/var/run/docker.sock:ro
        environment:
            - NGINX_PROXY_CONTAINER=nginx-proxy
        depends_on:
            - nginx-proxy
        restart: always
        networks:
          - default

networks:
  default:
    external: true
    name: network

volumes:
  #  vhost.d:
  html:
  acme:

In result I have a new version but maybe something should be fixed?

bash
$ docker compose build --no-cache nginx-proxy
$ docker compose up -d nginx-proxy
$ docker compose exec nginx-proxy nginx -V
nginx version: nginx/1.31.6
built by gcc 14.2.0 (Debian 14.2.0-19)
built with OpenSSL 3.5.6 7 Apr 2026
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/run/nginx.pid --lock-path=/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-control-api --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_json_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_v3_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/builder/debuild/nginx-1.31.6/debian/debuild-base/nginx-1.31.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'