Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 1 | parameters: |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 2 | _param: |
Filip Pytloun | e5a6f98 | 2017-03-29 15:59:22 +0200 | [diff] [blame^] | 3 | docker_image_gerrit: tcpcloud/gerrit:2.13.6 |
Filip Pytloun | 4a55e1e | 2017-03-27 19:04:26 +0200 | [diff] [blame] | 4 | gerrit_ldap_server: "" |
| 5 | gerrit_ldap_bind_user: "" |
| 6 | gerrit_ldap_bind_password: "" |
| 7 | gerrit_ldap_account_base: "" |
| 8 | gerrit_ldap_group_base: "" |
| 9 | |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 10 | docker: |
| 11 | client: |
| 12 | service: |
| 13 | gerrit: |
| 14 | environment: |
| 15 | #GERRIT_INIT_ARGS: "" |
| 16 | DATABASE_TYPE: "mysql" |
| 17 | DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address} |
| 18 | DB_ENV_MYSQL_USER: gerrit |
| 19 | DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 20 | DB_ENV_MYSQL_DB: gerrit |
| 21 | AUTH_TYPE: ${_param:gerrit_auth_type} |
Filip Pytloun | 4a55e1e | 2017-03-27 19:04:26 +0200 | [diff] [blame] | 22 | LDAP_SERVER: ${_param:gerrit_ldap_server} |
Filip Pytloun | d93b64b | 2017-03-28 10:50:23 +0200 | [diff] [blame] | 23 | LDAP_ACCOUNTPATTERN: 'uid={username}' |
Filip Pytloun | 4a55e1e | 2017-03-27 19:04:26 +0200 | [diff] [blame] | 24 | LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base} |
| 25 | LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base} |
| 26 | LDAP_USERNAME: ${_param:gerrit_ldap_bind_user} |
| 27 | LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password} |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 28 | WEBURL: ${_param:gerrit_public_host} |
| 29 | GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key} |
| 30 | GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password} |
| 31 | GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email} |
| 32 | restart: |
| 33 | condition: any |
| 34 | image: ${_param:docker_image_gerrit} |
| 35 | ports: |
| 36 | - 18083:8080 |
| 37 | - 29417:29418 |
| 38 | volume: |
| 39 | site: |
| 40 | type: bind |
| 41 | source: /srv/volumes/gerrit |
| 42 | destination: /var/gerrit/review_site |