Category : nginx-reverse-proxy

this is my docker file # stage1 – build react app first FROM node:12.16.1-alpine3.9 as build WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH COPY ./package.json /app/ COPY ./package-lock.json /app/ RUN npm i –silent COPY . /app RUN npm run build # stage 2 – build the final image and copy the react build files FROM nginx:1.17.8-alpine COPY ..

Read more

In my application I am using N number (3 in the examples below) of nodes in the same docker network. The docker-compose of the project looks like the following: version: "3.7" networks: my-network: name: my-network services: my-node0: container_name: node0 image: myimage build: context: $PWD/ dockerfile: Dockerfile ports: – "8080:8080" – "9090:9090" networks: my-network: aliases: – ..

Read more

I’m trying to build a docker-compose file with a nginx working as reverse proxy for a nodejs app. To summary my idea is: Browser(localhost:8000) -> Nginx(port:80) -> Node(port:3000) -> return my "Hello World!" My files: docker-compose.yaml version: ‘3’ services: app: build: context: ./node dockerfile: Dockerfile image: vitordarochacamargo/node container_name: node networks: – desafio-network nginx: build: context: ..

Read more

I want to use nginx as reverse proxy for my remote home automation access. My infrastructure yaml looks like follows: # /infrastructure/docker-compose.yaml version: ‘3’ services: proxy: image: jwilder/nginx-proxy:alpine container_name: proxy networks: – raspberry_network ports: – 80:80 – 443:443 environment: – ENABLE_IPV6=true – DEFAULT_HOST=${RASPBERRY_IP} volumes: – ./proxy/conf.d:/etc/nginx/conf.d – ./proxy/vhost.d:/etc/nginx/vhost.d – ./proxy/html:/usr/share/nginx/html – ./proxy/certs:/etc/nginx/certs – /etc/localtime:/etc/localtime:ro – ..

Read more

I am trying to follow the community documentation on mailcow dockerized and I am using Traefik as my load balancer. I have successfully obtained a SSL certificate and the certdump is working as expected when I check the logs. The issue I have having is that the nginx-mailcow container is not receiving the requests when ..

Read more

Currently I am using the following default.conf file to redirect my traffic to express (inside a docker container) server { location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://app:5000; } } As you might see all the traffic redirecting to the express app. But I need something ..

Read more