mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
🧑💻(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:
parent
53c51a3cca
commit
cd882c8f70
2 changed files with 16 additions and 0 deletions
4
Makefile
4
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
|
||||
|
|
|
|||
12
compose.yml
12
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue