Skip to content

daggerok/nginx-proxy-pass-gateway-example

Repository files navigation

nginx (mode proxy_pass) edge gateway  CI

Yet another nginx reverse proxy gateway example

build backing-services

after 2.3.x

./mvnw -f backing-services clean package spring-boot:build-image

see https://spring.io/blog/2020/01/27/creating-docker-images-with-spring-boot-2-3-0-m1

before 2.3.x

./mvnw -f backing-services clean package com.google.cloud.tools:jib-maven-plugin:dockerBuild -Dimage=backing-services:0.0.1-SNAPSHOT

build nginx-proxy-pass-gateway

docker build -t nginx-proxy-pass-gateway:0.0.1-SNAPSHOT nginx-proxy-pass-gateway

run all in docker and expose app behind nginx reverse-proxy

docker network rm     apps-dot-net || echo ''
docker network create apps-dot-net

docker run -d --rm --net apps-dot-net --name backing-services backing-services:0.0.1-SNAPSHOT
docker run -d --rm --net apps-dot-net -p 80:80 nginx-proxy-pass-gateway:0.0.1-SNAPSHOT

test

just open http://127.0.0.1/

resources