expose ports for docker compose in override file only

This commit is contained in:
Ivan Kuchin
2024-09-30 15:35:52 +02:00
parent f8ef7982bd
commit c379b2edfc
2 changed files with 1 additions and 5 deletions
+1
View File
@@ -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"
-5
View File
@@ -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