summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAntoine Jacques <[email protected]>2020-07-10 14:26:43 +0200
committerGitHub <[email protected]>2020-07-10 08:26:43 -0400
commit17d64098d97c4e5c25feffba87516a40711f9ff9 (patch)
tree4cb06afa4f5d0e98d4d039967c6c07ef5ece4276
parent55fb0fa6e778bf59542fe9aeefffbe69a1236aa0 (diff)
downloadcaprover-one-click-apps-17d64098d97c4e5c25feffba87516a40711f9ff9.tar.gz
caprover-one-click-apps-17d64098d97c4e5c25feffba87516a40711f9ff9.zip
Openldap One Click App (#214)
* Openldap One Click App * Update captain definition in compliance with comments * Add volume: persistent data
-rw-r--r--public/v2/apps/phpldapadmin.json76
-rw-r--r--public/v2/logos/phpldapadmin.pngbin0 -> 185665 bytes
2 files changed, 76 insertions, 0 deletions
diff --git a/public/v2/apps/phpldapadmin.json b/public/v2/apps/phpldapadmin.json
new file mode 100644
index 0000000..15c3440
--- /dev/null
+++ b/public/v2/apps/phpldapadmin.json
@@ -0,0 +1,76 @@
+{
+ "captainVersion": "2",
+ "documentation": "https://github.com/osixia/docker-openldap",
+ "description": "OpenLDAP with administration interface",
+ "displayName": "OpenLDAP + phpLDAPadmin",
+ "dockerCompose": {
+ "version": "3.8",
+ "services": {
+ "$$cap_appname": {
+ "image": "osixia/openldap:$$cap_openldap_version",
+ "restart": "always",
+ "volumes": ["$$cap_appname-db:/var/lib/ldap"],
+ "notExposeAsWebApp": "true",
+ "environment": {
+ "LDAP_ORGANISATION": "$$cap_openldap_ldap-organisation",
+ "LDAP_DOMAIN": "$$cap_root_domain",
+ "LDAP_ADMIN_PASSWORD": "$$cap_openldap_ldap-admin-password"
+ }
+ },
+ "$$cap_appname-admin": {
+ "image": "osixia/phpldapadmin:$$cap_phpldapadmin_version",
+ "containerHttpPort": "80",
+ "restart": "always",
+ "depends_on": ["$$cap_appname"],
+ "environment": {
+ "PHPLDAPADMIN_TRUST_PROXY_SSL": true,
+ "PHPLDAPADMIN_LDAP_HOSTS": "srv-captain--$$cap_appname",
+ "PHPLDAPADMIN_SERVER_ADMIN": "$$cap_phpldapadmin_admin-email",
+ "PHPLDAPADMIN_SERVER_PATH": "https://$$cap_appname-admin.$$cap_root_domain",
+ "PHPLDAPADMIN_HTTPS": false
+ }
+ }
+ },
+ "volumes": {
+ "$$cap_appname-db": {}
+ }
+ },
+ "instructions": {
+ "start": "OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.",
+ "end": "OpenLDAP is deployed and the admin interface is available on http://$$cap_appname-admin.$$cap_root_domain. You can connect by adapting cn=admin,dc=my-company,dc=com. If you want to access to your ldap server from outside, do not forget to add port mapping (389 for ldap with starttls, 636 for ldaps)."
+ },
+ "variables": [
+ {
+ "id": "$$cap_openldap_version",
+ "label": "Openldap Version",
+ "defaultValue": "1.4.0",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/osixia/openldap/tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_openldap_ldap-organisation",
+ "label": "Ldap Organisation",
+ "description": "The Organization name",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_openldap_ldap-admin-password",
+ "label": "The admin Password",
+ "description": "The admin password of the Openldap",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_phpldapadmin_version",
+ "label": "PHPLadapAdmin Version",
+ "defaultValue": "0.9.0",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/osixia/phpldapadmin/tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_phpldapadmin_admin-email",
+ "label": "The admin email",
+ "description": "The admin email of the Openldap administration interface",
+ "validRegex": "/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$/"
+ }
+ ]
+}
diff --git a/public/v2/logos/phpldapadmin.png b/public/v2/logos/phpldapadmin.png
new file mode 100644
index 0000000..9e98997
--- /dev/null
+++ b/public/v2/logos/phpldapadmin.png
Binary files differ