[PR #4] feat: add configurable server port via environment variable #5

Open
opened 2026-02-27 16:44:58 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/router-for-me/CLIProxyAPIBusiness/pull/4
Author: @sususu98
Created: 1/17/2026
Status: 🔄 Open

Base: mainHead: feature/configurable-server-port


📝 Commits (1)

  • a296001 feat: add configurable server port via environment variable

📊 Changes

2 files changed (+7 additions, -2 deletions)

View changed files

📝 .env.example (+3 -0)
📝 docker-compose.yml (+4 -2)

📄 Description

Summary

  • Add SERVER_PORT environment variable to .env.example for documentation
  • Update docker-compose.yml to use ${SERVER_PORT:-8318} for host port mapping, enabling flexible deployment across different environments
  • Standardize healthcheck test format to native YAML list syntax for better readability

Changes

File Change
.env.example Added SERVER_PORT=8318 configuration
docker-compose.yml Parameterized port mapping + YAML format cleanup

Test Plan

  • Verify docker-compose config outputs valid configuration
  • Test with default port (no SERVER_PORT set)
  • Test with custom SERVER_PORT value
  • Verify PostgreSQL healthcheck still works correctly

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/router-for-me/CLIProxyAPIBusiness/pull/4 **Author:** [@sususu98](https://github.com/sususu98) **Created:** 1/17/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature/configurable-server-port` --- ### 📝 Commits (1) - [`a296001`](https://github.com/router-for-me/CLIProxyAPIBusiness/commit/a2960012408235ed73b9c16332b174d6d8ce14ed) feat: add configurable server port via environment variable ### 📊 Changes **2 files changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -0) 📝 `docker-compose.yml` (+4 -2) </details> ### 📄 Description ## Summary - Add `SERVER_PORT` environment variable to `.env.example` for documentation - Update `docker-compose.yml` to use `${SERVER_PORT:-8318}` for host port mapping, enabling flexible deployment across different environments - Standardize healthcheck test format to native YAML list syntax for better readability ## Changes | File | Change | |------|--------| | `.env.example` | Added `SERVER_PORT=8318` configuration | | `docker-compose.yml` | Parameterized port mapping + YAML format cleanup | ## Test Plan - [ ] Verify `docker-compose config` outputs valid configuration - [ ] Test with default port (no `SERVER_PORT` set) - [ ] Test with custom `SERVER_PORT` value - [ ] Verify PostgreSQL healthcheck still works correctly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CLIProxyAPIBusiness#5
No description provided.