-
Running in docker environment (docker-compose)
services:
db:
restart: unless-stopped
image: mariadb:10.11
ports:
- 3307:3306
volumes:
- semaphore-db:/var/lib/mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: semaphore
MYSQL_USER: semaphore
MYSQL_PASSWORD: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
semaphore:
restart: unless-stopped
image: registry-gitlab.itx.de/docker-prod/semaphore:2.9.58
ports:
- 3000:3000
environment:
SEMAPHORE_WEB_ROOT: http://localhost:3000
SEMAPHORE_DB_USER: semaphore
SEMAPHORE_DB_PASS: XXXXXXXXXXXXXXXXXXXXXXX
SEMAPHORE_DB_HOST: db
SEMAPHORE_DB_PORT: 3306
SEMAPHORE_DB_DIALECT: mysql
SEMAPHORE_DB: semaphore
SEMAPHORE_PLAYBOOK_PATH: /tmp/semaphore/
SEMAPHORE_EMAIL_HOST: 10.0.0.20
SEMAPHORE_EMAIL_PORT: 25
SEMAPHORE_EMAIL_SENDER: [email protected]
SEMAPHORE_ADMIN_PASSWORD: XXXXXXXXXXXXXXXXXXXXXX
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_EMAIL: [email protected]
SEMAPHORE_ADMIN: admin
SEMAPHORE_ACCESS_KEY_ENCRYPTION: XXXXXXXXXXXXXXXXXXXXXXXXX # command: head -c32 /dev/urandom | base64
# Deactivated due to bug https://github.com/ansible-semaphore/semaphore/issues/419
# see https://github.com/ansible-semaphore/semaphore/discussions/1328
# see https://github.com/ansible-semaphore/semaphore/issues/1276
# SEMAPHORE_LDAP_ACTIVATED: 'yes'
# SEMAPHORE_LDAP_HOST: dc1.XXXX.XX
# SEMAPHORE_LDAP_PORT: '389'
# SEMAPHORE_LDAP_NEEDTLS: 'no'
# SEMAPHORE_LDAP_DN_BIND: 'CN=Service Semaphore,OU=XXXX,OU=XXX,DC=XXX,DC=XXX'
# SEMAPHORE_LDAP_PASSWORD: 'XXXXXXX'
# SEMAPHORE_LDAP_DN_SEARCH: 'OU=Users,OU=XXXX,DC=XXXXX,DC=XXXXX'
# SEMAPHORE_LDAP_SEARCH_FILTER: "(\u0026(sAMAccountName=%s)(memberOf=cn=XXXXX,cn=XXXX,cn=XXXX,cn=local))"
# SEMAPHORE_LDAP_MAPPING_USERNAME: 'sAMAccountName'
ANSIBLE_HOST_KEY_CHECKING: 'false'
volumes:
- type: bind
source: ./semaphore/config.json
target: /etc/semaphore/config.json
depends_on:
- db
labels:
- "diun.enable=true"
- "diun.hub_link=https://hub.docker.com/r/semaphoreui/semaphore"
- "diun.platform=linux/amd64"
volumes:
semaphore-db:
{
"tmp_path": "/tmp/semaphore",
"access_key_encryption": "ENCRYPTION_KEY",
"mysql": {
"host": "db",
"user": "semaphore",
"pass": "XXXXXXXXXXXXXXXXXXXXX",
"name": "semaphore",
"options": {}
},
"dialect": "mysql",
"ldap_enable": true,
"ldap_needtls": false,
"ldap_binddn": "CN=Service Semaphore,OU=XXXXX,OU=XXXXX,DC=XXXX,DC=local",
"ldap_bindpassword": "XXXXXX",
"ldap_server": "dc1.XXXXXXX:389",
"ldap_searchdn": "OU=Users,OU=XXXX,DC=XXXX,DC=XXXXX",
"ldap_searchfilter": "(&(sAMAccountName=%s)(memberOf=CN=XXXXXX,CN=Users,DC=XXXXX,DC=XXXXXX))",
"ldap_mappings": {
"dn": "dn",
"mail": "mail",
"uid": "sAMAccountName",
"cn": "cn"
},
"email_sender": "[email protected]",
"email_host": "10.0.0.20",
"email_port": "25",
"email_alert": true,
"web_host": "http://localhost:3000"
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
May be related to https://stackoverflow.com/questions/78020837/gorilla-session-package-error-securecookie-hash-key-is-not-set:
But setting this env variable does NOT fix the issue |
Beta Was this translation helpful? Give feedback.
-
Hi @gschafra , It is because
|
Beta Was this translation helpful? Give feedback.
-
O.k. now it works. TXL |
Beta Was this translation helpful? Give feedback.
@gschafra I found the issue. You need to provide
cookie_hash
too likecookie_encryption
:)