Skip to content

Instantly share code, notes, and snippets.

@propyless
Created June 4, 2016 11:15
Show Gist options
  • Save propyless/6fceaf293c342c15c3a42746f8900bbf to your computer and use it in GitHub Desktop.
Save propyless/6fceaf293c342c15c3a42746f8900bbf to your computer and use it in GitHub Desktop.
python-gerrit-docker-compose file
openldap:
image: osixia/openldap
environment:
- LDAP_ORGANISATION=DOMAIN
- LDAP_DOMAIN=DOMAIN.COM
- LDAP_ADMIN_PASSWORD=randompassword
ports:
- "389:389"
phpldapadmin:
image: osixia/phpldapadmin
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap-host
hostname: phpldapadmin-service
links:
- openldap
gerrit:
image: openfrontier/gerrit
environment:
- WEBURL=http://gerrit
- AUTH_TYPE=LDAP
- LDAP_SERVER=ldap
- LDAP_ACCOUNTBASE=ou=people,dc=domain,dc=com
- LDAP_GROUPBASE=ou=groups,dc=domain,dc=com
- LDAP_USERNAME=cn=admin,dc=domain,dc=com
- LDAP_PASSWORD=randompassword
- LDAP_ACCOUNTFULLNAME=givenName
links:
- openldap
ports:
- "80:8080"
- "29418:29418"
volumes:
- "/var/gerrit:/var/gerrit/review_site:Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment