how to run nginx docker container with custom config?
问题 I have a Dockerfile and custom nginx configuration file (in the same directory with Dockerfile) as follows: Dockerfile: FROM nginx COPY nginx.conf /etc/nginx/nginx.conf nginx.conf file: upstream myapp1 { least_conn; server http://domain.com:81; server http://domain.com:82; server http://domain.com:83; } server { listen 80; location / { proxy_pass http://myapp1; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host;