Set default listen port to ::1:8080

This commit is contained in:
Oliver Günther
2022-04-11 13:45:32 +02:00
parent a25deec9b1
commit 5bc21c40cd
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ After a while, OpenProject should be up and running on <http://localhost:8080>.
## Configuration
If you want to specify a different port, you can do so with:
By default, the application will be bound to localhost:8080 on the docker host only. If you need to publicly expose the port
or change the port to something else entirely, you can do so with:
PORT=4000 docker-compose up -d

View File

@@ -51,7 +51,7 @@ services:
<<: *restart_policy
command: "./docker/prod/proxy"
ports:
- "${PORT:-8080}:80"
- "${PORT:-::1:8080}:80"
environment:
APP_HOST: web
OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}"