🧑‍💻(nginx) add nginx-frontend

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.
This commit is contained in:
Anthony LC 2026-03-30 16:13:10 +02:00
parent 53c51a3cca
commit cd882c8f70
No known key found for this signature in database
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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: