Skip to content

Commit

Permalink
apply port config for docker dev env as well
Browse files Browse the repository at this point in the history
  • Loading branch information
machisuji authored and toy committed Sep 30, 2024
1 parent 0108504 commit 405e4da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ 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:-}"
Expand Down Expand Up @@ -66,6 +67,8 @@ services:
depends_on:
- db
- cache
ports:
- "${PORT}:3000"

worker:
<<: *backend
Expand All @@ -87,6 +90,8 @@ services:
- network
depends_on:
- backend
ports:
- "${FE_PORT}:4200"

db:
image: postgres:13
Expand Down

0 comments on commit 405e4da

Please sign in to comment.