Skip to content

fix: select deterministic ports for nginx - #118

Merged
vitormattos merged 20 commits into
mainfrom
fix/nginx-port-selector
Aug 18, 2026
Merged

fix: select deterministic ports for nginx#118
vitormattos merged 20 commits into
mainfrom
fix/nginx-port-selector

Conversation

@vitormattos

Copy link
Copy Markdown
Member
  • Prefer 80/443 for nginx and fallback sequentially when ports are busy.
  • Keep multiple checkouts isolated by Compose project.
  • Preserve explicit HTTP_PORT, HTTPS_PORT and IP_BIND overrides.
  • Display a final environment banner with the actual published URLs.
  • Report optional services such as Mailpit and Playwright when available.

The developer workflow remains:

docker compose up

Example of docker service log:

nextcloud-1            | ✅ Database 🐬mysql ready
nextcloud-1            | 📅 Running cron for the first time ...
nextcloud-1            | Starting PHP-FPM...
nextcloud-1            | [18-Aug-2026 17:24:06] NOTICE: fpm is running, pid 1
nextcloud-1            | [18-Aug-2026 17:24:06] NOTICE: ready to handle connections
nextcloud-1            | 
nextcloud-1            | ┌─ 💙 Environment ready ─────────────────────
nextcloud-1            | │
nextcloud-1            | │ Nextcloud HTTP   http://localhost
nextcloud-1            | │ Nextcloud HTTPS  https://localhost
nextcloud-1            | │ Mailpit          http://localhost:8031
nextcloud-1            | │
nextcloud-1            | │ Nextcloud branch master
nextcloud-1            | │ Admin user       admin
nextcloud-1            | │ Admin password   admin
nextcloud-1            | │
nextcloud-1            | └────────────────────────────────────────────
nginx-port-selector-1  | ✅ Port selection complete. Exiting normally.
nginx-port-selector-1 exited with code 0

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos requested a review from YvesCesar August 18, 2026 17:26
@vitormattos
vitormattos merged commit e014019 into main Aug 18, 2026
6 checks passed
@vitormattos
vitormattos deleted the fix/nginx-port-selector branch August 18, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants