Skip to content

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

[#47624] added flexible port for frontend in docker dev

Eric Schubert5d41d9b51d6f
diff --git a/.env.example b/.env.example
index 0f9a38e9741..1990ce348a7 100644
--- a/.env.example
+++ b/.env.example
@@ -44,7 +44,7 @@ PUBLIC_HOST=localhost
OPENPROJECT_EDITION=standard
HOST=0.0.0.0
-PORT=1337
+PORT=4200
DEV_UID=1000
DEV_GID=1001
diff --git a/docker-compose.override.example.yml b/docker-compose.override.example.yml
index 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.json
index 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",