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

expose ports for docker compose in override file only

Ivan Kuchinc379b2edfcde
diff --git a/docker-compose.override.example.yml b/docker-compose.override.example.yml
index edb5424fdec..d55e1f05c26 100644
--- a/docker-compose.override.example.yml
+++ b/docker-compose.override.example.yml
@@ -5,6 +5,7 @@ services:
backend:
environment:
OPENPROJECT_CLI_PROXY: "http://localhost:${FE_PORT:-4200}"
+ OPENPROJECT_HOST__NAME: "${HOST:-localhost}:${PORT:-3000}"
ports:
- "${PORT:-3000}:3000"
diff --git a/docker-compose.yml b/docker-compose.yml
index ff9fcc78de4..5c3e420c855 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -38,7 +38,6 @@ x-op-backend: &backend
environment:
LOCAL_DEV_CHECK: "${LOCAL_DEV_CHECK:?The docker-compose file for OpenProject has moved to https://github.com/opf/openproject-deploy}"
RAILS_ENV: development
- OPENPROJECT_HOST__NAME: "${HOST:-localhost}:${PORT:-3000}"
OPENPROJECT_CACHE__MEMCACHE__SERVER: cache:11211
OPENPROJECT_RAILS__CACHE__STORE: file_store
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"
@@ -67,8 +66,6 @@ services:
depends_on:
- db
- cache
- ports:
- - "${PORT:-3000}:3000"
worker:
<<: *backend
@@ -90,8 +87,6 @@ services:
- network
depends_on:
- backend
- ports:
- - "${FE_PORT:-4200}:4200"
db:
image: postgres:13