🔧(docker) add a service in compose to frontend development

We want a serice in compose starting the frontend application in
development mode. We want to take the advantage of the hot reload
module, so the sources are mounted inside the container.
This commit is contained in:
Manuel Raynaud
2025-06-02 19:00:13 +02:00
parent 4fc49d5cb2
commit f07fcd4c0d
2 changed files with 9 additions and 5 deletions

View File

@@ -147,17 +147,21 @@ services:
condition: service_healthy
restart: true
frontend:
frontend-development:
user: "${DOCKER_USER:-1000}"
build:
context: .
dockerfile: ./src/frontend/Dockerfile
target: frontend-production
target: impress-dev
args:
API_ORIGIN: "http://localhost:8071"
PUBLISH_AS_MIT: "false"
SW_DEACTIVATED: "true"
image: impress:frontend-development
volumes:
- ./src/frontend:/home/frontend
- /home/frontend/node_modules
- /home/frontend/apps/impress/node_modules
ports:
- "3000:3000"