OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#47624] added flexible port for frontend in docker dev
Eric Schubert5d41d9b51d6f
diff --git a/.env.example b/.env.exampleindex 0f9a38e9741..1990ce348a7 100644--- a/.env.example+++ b/.env.example@@ -44,7 +44,7 @@ PUBLIC_HOST=localhostOPENPROJECT_EDITION=standardHOST=0.0.0.0-PORT=1337+PORT=4200DEV_UID=1000DEV_GID=1001diff --git a/docker-compose.override.example.yml b/docker-compose.override.example.ymlindex 3bc8e54edf1..d41f34fcd83 100644--- a/docker-compose.override.example.yml+++ b/docker-compose.override.example.yml@@ -3,12 +3,14 @@services:backend:+ environment:+ OPENPROJECT_CLI_PROXY: "http://localhost:${PORT}"ports:- "3000:3000"frontend:ports:- - "4200:4200"+ - "${PORT}:4200"storybook:ports:diff --git a/frontend/package.json b/frontend/package.jsonindex e2afe397ecf..bd8a73f7758 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -180,7 +180,7 @@"build:watch": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --watch --named-chunks","tokens:generate": "theo src/app/spot/styles/tokens/tokens.yml --transform web --format sass,json --dest src/app/spot/styles/tokens/dist","icon-font:generate": "node ./src/app/spot/icon-font/generate.js ./src/app/spot/icon-font",- "serve": "node --max_old_space_size=8096 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --public-host http://localhost:4201",+ "serve": "node --max_old_space_size=8096 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --public-host http://localhost:4200","serve:test": "node --max_old_space_size=8096 ./node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --disable-host-check --public-host http://frontend-test:4200","test": "ng test --watch=false","test:watch": "ng test --watch=true",