How to override Nginx configuration with new modules?

Not sure for the category of this post but …(there is a lot :sweat_smile:)
I am trying to override Nginx to add another Nginx module to be able to hide Nginx server information totally with more_set_headers module from Nginx. But I have some errors.

Here is my docker-composer.yml :

version: '3.8'

volumes:
  db:
  nextcloud:

services:
  db:
    image: postgres:alpine
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - POSTGRES_DB_FILE=/run/secrets/postgres_db
      - POSTGRES_USER_FILE=/run/secrets/postgres_user
      - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
    secrets:
      - postgres_db
      - postgres_user
      - postgres_password

  app:
    image: nextcloud:production-fpm-alpine
    restart: always
    volumes:
      - nextcloud:/var/www/html
#      - project/data:/var/www/html/data
#      - project/config:/var/www/html/config
#      - project/apps:/var/www/html/apps
    depends_on:
      - db
    environment:
      - POSTGRES_HOST=db
      - POSTGRES_DB_FILE=/run/secrets/postgres_db
      - POSTGRES_USER_FILE=/run/secrets/postgres_user
      - POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
      - NEXTCLOUD_ADMIN_PASSWORD_FILE=/run/secrets/nextcloud_admin_password
      - NEXTCLOUD_ADMIN_USER_FILE=/run/secrets/nextcloud_admin_user
    secrets:
      - nextcloud_admin_password
      - nextcloud_admin_user
      - postgres_db
      - postgres_password
      - postgres_user
  web:
    build: ./nginx
    image: nginx:stable-alpine-lp
    restart: always
    ports:
      - "8080:80"
    depends_on:
      - app
    volumes:
      - nextcloud:/var/www/html:ro
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro

secrets:
  nextcloud_admin_password:
    file: ./secrets/nextcloud_admin_password.txt
  nextcloud_admin_user:
    file: ./secrets/nextcloud_admin_user.txt
  postgres_db:
    file: ./secrets/postgres_db.txt
  postgres_password:
    file: ./secrets/postgres_password.txt
  postgres_user:
    file: ./secrets/postgres_user.txt

Here is my nginx image Dockerfile :

FROM nginx:stable-alpine
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 80
STOPSIGNAL SIGQUIT
CMD ["nginx","-g","daemon"]

Maybe I have to start from scratch for this Nginx image I do not know :thinking:.

I put my log files here :
App => https://pastebin.com/V8VKGiBE
Db => https://controlc.com/1fefd555
Web => https://controlc.com/2c5bc066

It is working when I use image: nginx:stable-alpine instead of my Nginx image attempt.