How to configure Passanger using Dockerfile?

I spent a lot of hours and just stuck:(
1. ruby-2.6.3
2. rails: 6.0.0
3. Nginx – 1.17
4. passenger
)

I want to containerize the above configuration.
What is the step to create a docker file to run my application on Nginx with a passenger?

My Docker file is:

FROM ruby:2.6.3

RUN apt-get update -qq && apt-get install -y nodejs postgresql-client

#RUN  mkdir webapp
WORKDIR /webapp
ADD Gemfile  /webapp/Gemfile 
ADD Gemfile.lock  /webapp/Gemfile.lock

COPY . /webapp

# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]

COPY . ./
RUN bundle install 

EXPOSE 3000

CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

Docker Compose file is:

version: '3.7' 
services:
  web:
    build: '.'
    command: "bundle exec rails s -p 3000 -b '0.0.0.0'"
    ports:
      - '3000:3000'
  nginx:
     image: nginx:1.17
     container_name: Nginx
     volumes:
       - ./:/var/www
       - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
     build : 
      context: ./      
     depends_on:
      - 'web'
     ports : 
      -  80:80 

What is the step to configure Passenger in Nginx?

Source: StackOverflow