From cd882c8f70599b4f360dd4d20051673ae70c6ced Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 30 Mar 2026 16:13:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB(nginx)=20add?= =?UTF-8?q?=20nginx-frontend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test easily a build application with nginx, we add a nginx-frontend to serve the static files of the application, it will help us to test the application in a more production-like environment. --- Makefile | 4 ++++ compose.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Makefile b/Makefile index fd1d10b0..40391fff 100644 --- a/Makefile +++ b/Makefile @@ -214,6 +214,10 @@ build-e2e: ## build the e2e container @$(COMPOSE_E2E) build y-provider $(cache) .PHONY: build-e2e +nginx-frontend: ## build the nginx-frontend container + @$(COMPOSE) up --force-recreate -d nginx-frontend +.PHONY: nginx-frontend + down: ## stop and remove containers, networks, images, and volumes @$(COMPOSE_E2E) down .PHONY: down diff --git a/compose.yml b/compose.yml index c1d5be85..ce5024a6 100644 --- a/compose.yml +++ b/compose.yml @@ -129,6 +129,18 @@ services: condition: service_healthy restart: true + nginx-frontend: + image: nginx:1.25 + ports: + - "3000:3000" + volumes: + - ./src/frontend/apps/impress/conf/default.conf:/etc/nginx/conf.d/impress.conf + - ./src/frontend/apps/impress/out:/app + depends_on: + keycloak: + condition: service_healthy + restart: true + frontend-development: user: "${DOCKER_USER:-1000}" build: