Filip Pytloun | ebef02f | 2017-11-30 15:16:03 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker.client.compose |
| 3 | parameters: |
| 4 | _param: |
Filip Pytloun | ebef02f | 2017-11-30 15:16:03 +0100 | [diff] [blame] | 5 | gerrit_ldap_server: "" |
| 6 | gerrit_ldap_bind_user: "" |
Filip Pytloun | ebef02f | 2017-11-30 15:16:03 +0100 | [diff] [blame] | 7 | gerrit_ldap_account_base: "" |
| 8 | gerrit_ldap_group_base: "" |
| 9 | gerrit_http_listen_url: http://*:8080/ |
| 10 | gerrit_extra_opts: "" |
| 11 | docker: |
| 12 | client: |
| 13 | compose: |
| 14 | gerrit: |
| 15 | service: |
| 16 | server: |
| 17 | image: ${_param:docker_image_gerrit} |
| 18 | restart: always |
| 19 | ports: |
| 20 | - 18083:8080 |
| 21 | - 29417:29418 |
| 22 | volumes: |
| 23 | - /srv/volumes/gerrit:/var/gerrit/review_site |
| 24 | depends_on: |
| 25 | - db |
| 26 | environment: |
| 27 | #GERRIT_INIT_ARGS: "" |
| 28 | DATABASE_TYPE: "mysql" |
| 29 | DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address} |
| 30 | DB_ENV_MYSQL_USER: gerrit |
| 31 | DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 32 | DB_ENV_MYSQL_DB: gerrit |
| 33 | AUTH_TYPE: ${_param:gerrit_auth_type} |
| 34 | LDAP_SERVER: ${_param:gerrit_ldap_server} |
| 35 | LDAP_ACCOUNTPATTERN: 'uid={username}' |
| 36 | LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base} |
| 37 | LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base} |
| 38 | LDAP_USERNAME: ${_param:gerrit_ldap_bind_user} |
| 39 | LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password} |
| 40 | WEBURL: ${_param:gerrit_public_host} |
| 41 | HTTPD_LISTENURL: ${_param:gerrit_http_listen_url} |
| 42 | GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key} |
| 43 | GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password} |
| 44 | GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email} |
| 45 | CANLOADINIFRAME: "true" |
| 46 | JAVA_OPTIONS: ${_param:gerrit_extra_opts} |
| 47 | https_proxy: ${_param:docker_https_proxy} |
| 48 | http_proxy: ${_param:docker_http_proxy} |
| 49 | no_proxy: ${_param:docker_no_proxy} |
| 50 | db: |
| 51 | environment: |
| 52 | MYSQL_USER: gerrit |
| 53 | MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 54 | MYSQL_DATABASE: gerrit |
| 55 | MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password} |
| 56 | MYSQL_START_TIMEOUT: 300 |
| 57 | deploy: |
| 58 | restart_policy: |
| 59 | condition: any |
| 60 | image: "${_param:docker_image_mysql}" |
| 61 | ports: |
| 62 | - 13306:3306 |
| 63 | volumes: |
| 64 | - /srv/volumes/mysql:/var/lib/mysql |
Jakub Josef | 5540cde | 2017-12-07 15:15:12 +0100 | [diff] [blame] | 65 | network: |
| 66 | default: |
| 67 | ipam: |
| 68 | driver: default |
| 69 | config: |
| 70 | - subnet: 172.30.0.0/24 |
Filip Pytloun | ebef02f | 2017-11-30 15:16:03 +0100 | [diff] [blame] | 71 | linux: |
| 72 | system: |
| 73 | directory: |
| 74 | /srv/volumes/gerrit: |
| 75 | makedirs: true |