From 22e9f76f17841e77673837c1265de11ca1a01a9b Mon Sep 17 00:00:00 2001 From: Stephane Bonnet <stephane.bonnet@hds.utc.fr> Date: Sun, 2 Jun 2019 17:04:51 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=C3=A9=20un=20exemple=20de=20secrets,=20un?= =?UTF-8?q?=20docker-compose=20et=20le=20dossier=20dans=20lequel=20mettre?= =?UTF-8?q?=20les=20ldif=20au=20bootstrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pica-openldap/bootstrap/ldif/.gitignore | 0 pica-openldap/docker-compose.yml | 22 +++++++++++++++++++ .../secrets/pica-openldap.secrets.example | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 pica-openldap/bootstrap/ldif/.gitignore create mode 100644 pica-openldap/docker-compose.yml create mode 100644 pica-openldap/secrets/pica-openldap.secrets.example diff --git a/pica-openldap/bootstrap/ldif/.gitignore b/pica-openldap/bootstrap/ldif/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/pica-openldap/docker-compose.yml b/pica-openldap/docker-compose.yml new file mode 100644 index 00000000..6acb2868 --- /dev/null +++ b/pica-openldap/docker-compose.yml @@ -0,0 +1,22 @@ +version: "2.2" + +services: + ldap-host: + image: pica/openldap:latest + container_name: ldap-host + ports: + - "389:389" + - "636:636" + env_file: + - ./secrets/pica-openldap.secrets + hostname: ldap.test.picasoft.net + labels: + - "traefik.frontend.rule=Host:ldap.test.picasoft.net,pica01-test.picasoft.net" + - "traefik.enable=true" + volumes: + - /var/lib/ldap + - /etc/ldap/slapd.d + - ldap-certs:/container/service/slapd/assets/certs + +volumes: + ldap-certs: \ No newline at end of file diff --git a/pica-openldap/secrets/pica-openldap.secrets.example b/pica-openldap/secrets/pica-openldap.secrets.example new file mode 100644 index 00000000..23b8cddd --- /dev/null +++ b/pica-openldap/secrets/pica-openldap.secrets.example @@ -0,0 +1,3 @@ +LDAP_ADMIN_PASSWORD=test +LDAP_CONFIG_PASSWORD=configtest +LDAP_READONLY_USER_PASSWORD=nsstest -- GitLab