Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame^] | 1 | classes: |
| 2 | - system.docker |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | parameters: |
| 4 | _param: |
| 5 | docker_image_gerrit: tcpcloud/gerrit:2.13.6 |
Filip Pytloun | de31773 | 2017-04-25 17:47:33 +0200 | [diff] [blame] | 6 | docker_image_mysql: tcpcloud/mysql:5.6 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 7 | gerrit_ldap_server: "" |
| 8 | gerrit_ldap_bind_user: "" |
| 9 | gerrit_ldap_bind_password: "" |
| 10 | gerrit_ldap_account_base: "" |
| 11 | gerrit_ldap_group_base: "" |
Jiri Broulik | 7560930 | 2017-09-11 19:33:31 +0200 | [diff] [blame] | 12 | gerrit_http_listen_url: http://*:8080/ |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame^] | 13 | gerrit_extra_opts: "" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | docker: |
| 15 | client: |
| 16 | stack: |
| 17 | gerrit: |
| 18 | service: |
| 19 | server: |
| 20 | deploy: |
| 21 | restart_policy: |
| 22 | condition: any |
| 23 | image: ${_param:docker_image_gerrit} |
| 24 | ports: |
| 25 | - 18083:8080 |
| 26 | - 29417:29418 |
| 27 | volumes: |
| 28 | - /srv/volumes/gerrit:/var/gerrit/review_site |
| 29 | depends_on: |
| 30 | - db |
| 31 | environment: |
| 32 | #GERRIT_INIT_ARGS: "" |
| 33 | DATABASE_TYPE: "mysql" |
| 34 | DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address} |
| 35 | DB_ENV_MYSQL_USER: gerrit |
| 36 | DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 37 | DB_ENV_MYSQL_DB: gerrit |
| 38 | AUTH_TYPE: ${_param:gerrit_auth_type} |
| 39 | LDAP_SERVER: ${_param:gerrit_ldap_server} |
| 40 | LDAP_ACCOUNTPATTERN: 'uid={username}' |
| 41 | LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base} |
| 42 | LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base} |
| 43 | LDAP_USERNAME: ${_param:gerrit_ldap_bind_user} |
| 44 | LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password} |
Filip Pytloun | e6673c4 | 2017-05-11 16:43:03 +0200 | [diff] [blame] | 45 | WEBURL: ${_param:gerrit_public_host} |
Jiri Broulik | 7560930 | 2017-09-11 19:33:31 +0200 | [diff] [blame] | 46 | HTTPD_LISTENURL: ${_param:gerrit_http_listen_url} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 47 | GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key} |
| 48 | GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password} |
| 49 | GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email} |
| 50 | CANLOADINIFRAME: "true" |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame^] | 51 | JAVA_OPTIONS: ${_param:gerrit_extra_opts} |
| 52 | https_proxy: ${_param:docker_https_proxy} |
| 53 | http_proxy: ${_param:docker_http_proxy} |
| 54 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 55 | db: |
| 56 | environment: |
| 57 | MYSQL_USER: gerrit |
| 58 | MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 59 | MYSQL_DATABASE: gerrit |
| 60 | MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password} |
Filip Pytloun | 6d4c51a | 2017-05-02 11:38:34 +0200 | [diff] [blame] | 61 | MYSQL_START_TIMEOUT: 300 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 62 | deploy: |
| 63 | restart_policy: |
| 64 | condition: any |
| 65 | image: "${_param:docker_image_mysql}" |
| 66 | ports: |
| 67 | - 13306:3306 |
| 68 | volumes: |
| 69 | - /srv/volumes/mysql:/var/lib/mysql |