From 3da3da5d7404e2896d26216126495b749443af23 Mon Sep 17 00:00:00 2001 From: fiftin Date: Sat, 1 Jun 2024 11:32:53 +0200 Subject: [PATCH] chore(examples): update readme --- examples/authentik_ldap/README.md | 10 ++---- examples/authentik_ldap/docker-compose.yml | 40 +++++++++++----------- 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/examples/authentik_ldap/README.md b/examples/authentik_ldap/README.md index 9d6fe91a..70e2cca0 100644 --- a/examples/authentik_ldap/README.md +++ b/examples/authentik_ldap/README.md @@ -10,16 +10,12 @@ 2. To start the initial setup, navigate to http://localhsot:9000/if/flow/initial-setup/. There you are prompted to set a password for the `akadmin` user (the default user). 3. Set up LDAP in Athentik according to the video tutorial [Authentik - LDAP Generic Setup](https://youtu.be/RtPKMMKRT_E). -4. Set up Athentik LDAP container: +4. Set up Athentik LDAP and Semaphore containers: 1. Copy `AUTHENTIK_TOKEN`. - 2. Stop stack by command: - + 2. Update `AUTHENTIK_TOKEN` for LDAP service. + 3. Reload the stack: ``` docker-compose down - ``` - 3. Update `AUTHENTIK_TOKEN` for LDAP service. - 4. Start stack again: - ``` docker-compose up -d ``` 5. Create new Semaphore project: diff --git a/examples/authentik_ldap/docker-compose.yml b/examples/authentik_ldap/docker-compose.yml index 91fe05ce..e41f5b2f 100644 --- a/examples/authentik_ldap/docker-compose.yml +++ b/examples/authentik_ldap/docker-compose.yml @@ -70,26 +70,26 @@ services: AUTHENTIK_INSECURE: "false" AUTHENTIK_TOKEN: DdmZvpMV9Jb7XAw0nts08jQ43hMOsx4ANkkABLz4s9HpxV8mWzxdYjF5WIpg -# semaphore: -# image: semaphoreui/semaphore:latest -# environment: -# SEMAPHORE_DB_DIALECT: "bolt" -# SEMAPHORE_ADMIN_PASSWORD: "changeme" -# SEMAPHORE_ADMIN_NAME: "admin" -# SEMAPHORE_ADMIN_EMAIL: "admin@example.org" -# SEMAPHORE_LDAP_ACTIVATED: "yes" -# SEMAPHORE_LDAP_SERVER: "ldap:3389" -# SEMAPHORE_LDAP_SEARCH_DN: "ou=users,dc=ldap,dc=goauthentik,dc=io" -# SEMAPHORE_LDAP_BIND_DN: "cn=ldapservice,ou=users,DC=ldap,DC=goauthentik,DC=io" -# SEMAPHORE_LDAP_BIND_PASSWORD: "changeme" -# SEMAPHORE_LDAP_USERFILTER: "(&(objectClass=inetOrgPerson)(cn=%s))" -# SEMAPHORE_NON_ADMIN_CAN_CREATE_PROJECT: "yes" -# ports: -# - "3000:3000" -# volumes: -# - semaphore_data:/var/lib/semaphore -# depends_on: -# - ldap + semaphore: + image: semaphoreui/semaphore:latest + environment: + SEMAPHORE_DB_DIALECT: "bolt" + SEMAPHORE_ADMIN_PASSWORD: "changeme" + SEMAPHORE_ADMIN_NAME: "admin" + SEMAPHORE_ADMIN_EMAIL: "admin@example.org" + SEMAPHORE_LDAP_ACTIVATED: "yes" + SEMAPHORE_LDAP_SERVER: "ldap:3389" + SEMAPHORE_LDAP_SEARCH_DN: "ou=users,dc=ldap,dc=goauthentik,dc=io" + SEMAPHORE_LDAP_BIND_DN: "cn=ldapservice,ou=users,DC=ldap,DC=goauthentik,DC=io" + SEMAPHORE_LDAP_BIND_PASSWORD: "changeme" + SEMAPHORE_LDAP_USERFILTER: "(&(objectClass=inetOrgPerson)(cn=%s))" + SEMAPHORE_NON_ADMIN_CAN_CREATE_PROJECT: "yes" + ports: + - "3000:3000" + volumes: + - semaphore_data:/var/lib/semaphore + depends_on: + - ldap volumes: database: redis: