semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.61k stars 1.07k forks source link

Problem: SEMAPHORE_DB_PORT not used in a container #2152

Open UNiXMIT opened 4 months ago

UNiXMIT commented 4 months ago

Issue

When starting Semaphore in a container, if you set SEMAPHORE_DB_PORT to a custom port to use with Postgres (i.e. something other than the default 5432) the config still uses 5432. So SEMAPHORE_DB_PORT is useless as whatever you put in there is not used.

Impact

Configuration

Installation method

Docker

Database

Postgres

Browser

Firefox

Semaphore Version

2.10.11

Ansible Version

ansible [core 2.16.8]

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

UNiXMIT commented 4 months ago

Even after changing it in the config file to the correct port, the default port is still used. In the config file:

"postgres": {                                        
                "host": "x.x.x.x:7171",

but:

semaphore user list --config /etc/semaphore/config.json
Loading config
Validating config
WARN[0000] dial tcp x.x.x.x:5432: connect: connection refused
LuqWright commented 2 months ago

Did you get a fix for this? Experiencing the same issue