Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Docker env variable not reported in config.json #2158

Open
ksourdrille opened this issue Jul 2, 2024 · 2 comments
Open

Problem: Docker env variable not reported in config.json #2158

ksourdrille opened this issue Jul 2, 2024 · 2 comments

Comments

@ksourdrille
Copy link

ksourdrille commented Jul 2, 2024

Issue

Hello,

I'm facing a problem when configuring semaphore with docker, I tried to use environment variables to configure LDAP, mails, encryption key.

But the elements entered in the docker-compose.yml file are not passed on to the semaphore config.json file.

I start the semaphore container with all the parameters and display the /etc/semaphore/config.json file present in the container but empty except for the database configuration.

Below are the environment variables used:

SEMAPHORE_ACCESS_KEY_ENCRYPTION: 
SEMAPHORE_EMAIL_ALERT: 
SEMAPHORE_EMAIL_SENDER: 
SEMAPHORE_EMAIL_HOST: 
SEMAPHORE_EMAIL_PORT: 
SEMAPHORE_EMAIL_USERNAME: 
SEMAPHORE_EMAIL_PASSWORD: 
SEMAPHORE_EMAIL_SECURE:
SEMAPHORE_LDAP_ENABLE: 
SEMAPHORE_LDAP_BIND_DN: 
SEMAPHORE_LDAP_BIND_PASSWORD: 
SEMAPHORE_LDAP_SERVER: 
SEMAPHORE_LDAP_SEARCH_DN: 
SEMAPHORE_LDAP_SEARCH_FILTER: 
SEMAPHORE_LDAP_NEEDTLS: 
SEMAPHORE_LDAP_MAPPING_DN: 
SEMAPHORE_LDAP_MAPPING_MAIL: 
SEMAPHORE_LDAP_MAPPING_UID: 
SEMAPHORE_LDAP_MAPPING_CN: 

There are already issues (#1522 #2088) but there are no solutions, so I'm opening mine.

I'm still available if you need me for testing.

(same with latest version 2.10.11)

Impact

Configuration, Docker

Installation method

Docker

Database

MySQL

Browser

Firefox, Chrome, Microsoft Edge

Semaphore Version

2.9.64

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@ksourdrille ksourdrille changed the title Problem: Docker env variable not reported in conf.json Problem: Docker env variable not reported in config.json Jul 2, 2024
@ksourdrille
Copy link
Author

Hi @fiftin,

any help on this issue ?

@xBounceIT
Copy link

same, i have setup my docker-compose with environment varialbes but if i set SEMAPHORE_LDAP_ACTIVATED to yes it crashes on startup for missing config file, if i set it to no it starts but the content of config.json is missing the ldap environment variables.

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

No branches or pull requests

2 participants