mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
In between commit LDAP integration
This commit is contained in:
@@ -1,36 +1,42 @@
|
||||
version: '2'
|
||||
|
||||
networks:
|
||||
my-network:
|
||||
driver: bridge
|
||||
services:
|
||||
openldap:
|
||||
image: bitnami/openldap:2
|
||||
ports:
|
||||
- '389:1389'
|
||||
- '636:1636'
|
||||
environment:
|
||||
- LDAP_ADMIN_USERNAME=admin
|
||||
- LDAP_ADMIN_PASSWORD=adminpassword
|
||||
- LDAP_USERS=user01,user02 # Comma separated list of LDAP users to create in the default LDAP tree. Default: user01,user02
|
||||
- LDAP_PASSWORDS=password1,password2 #Comma separated list of passwords to use for LDAP users. Default: bitnami1,bitnami2
|
||||
|
||||
- LDAP_ROOT=dc=example,dc=org
|
||||
- LDAP_ADMIN_DN=cn=admin,dc=example,dc=org
|
||||
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||||
|
||||
- MARIADB_ROOT_PASSWORD=root-password
|
||||
- MARIADB_GALERA_MARIABACKUP_PASSWORD=backup-password
|
||||
- MARIADB_USER=customuser
|
||||
- MARIADB_DATABASE=customdatabase
|
||||
- MARIADB_ENABLE_LDAP=yes
|
||||
networks:
|
||||
- my-network
|
||||
openldap:
|
||||
image: bitnami/openldap:{{ldap_version}}
|
||||
logging:
|
||||
driver: journald
|
||||
restart: {{docker_restart_policy}}
|
||||
ports:
|
||||
- '127.0.0.1:389:1389' # Expose just on local host for security reasons
|
||||
- '636:636' # Expose to internet
|
||||
environment:
|
||||
# GENERAL
|
||||
LDAP_ADMIN_USERNAME: {{ldap_administrator_username}} # LDAP database admin user.
|
||||
LDAP_ADMIN_PASSWORD: {{ldap_administrator_password}} # LDAP database admin password.
|
||||
#LDAP_USERS: user01,user02 # Comma separated list of LDAP users to create in the default LDAP tree. Default: user01,user02
|
||||
#LDAP_PASSWORDS: password1,password2 # Comma separated list of passwords to use for LDAP users. Default: bitnami1,bitnami
|
||||
LDAP_ROOT: {{ldap_root}} # LDAP baseDN (or suffix) of the LDAP tree. Default: dc=example,dc=org
|
||||
LDAP_ADMIN_DN: {{ldap_admin_dn}}
|
||||
|
||||
# TLS
|
||||
LDAP_ENABLE_TLS: yes # Whether to enable TLS for traffic or not. Defaults to no
|
||||
LDAP_REQUIRE_TLS: yes # Whether connections must use TLS. Will only be applied with LDAP_ENABLE_TLS active. Defaults to no
|
||||
LDAP_LDAPS_PORT_NUMBER: 636 # Port used for TLS secure traffic. Priviledged port is supported (e.g. 636). Default: 1636 (non privileged port).
|
||||
LDAP_TLS_CERT_FILE: File containing the certificate file for the TLS traffic. No defaults.
|
||||
LDAP_TLS_KEY_FILE: File containing the key for certificate. No defaults.
|
||||
LDAP_TLS_CA_FILE: File containing the CA of the certificate. No defaults.
|
||||
LDAP_TLS_DH_PARAMS_FILE: File containing the DH parameters. No defaults.
|
||||
|
||||
# Database Configuration
|
||||
MARIADB_ROOT_PASSWORD=root-password
|
||||
MARIADB_USER=customuser
|
||||
MARIADB_DATABASE=customdatabase
|
||||
MARIADB_ENABLE_LDAP=yes
|
||||
volumes:
|
||||
- 'openldap_data:/bitnami/openldap'
|
||||
myapp:
|
||||
image: 'YOUR_APPLICATION_IMAGE'
|
||||
networks:
|
||||
- my-network
|
||||
volumes:
|
||||
openldap_data:
|
||||
driver: local
|
||||
- 'data:/bitnami/openldap'
|
||||
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
||||
data:
|
||||
|
||||
{% include 'templates/docker/compose/networks.yml.j2' %}
|
||||
|
Reference in New Issue
Block a user