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: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 5 | gerrit_ldap_server: "" |
| 6 | gerrit_ldap_bind_user: "" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 7 | gerrit_ldap_account_base: "" |
| 8 | gerrit_ldap_group_base: "" |
Jiri Broulik | 7560930 | 2017-09-11 19:33:31 +0200 | [diff] [blame] | 9 | gerrit_http_listen_url: http://*:8080/ |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 10 | gerrit_extra_opts: "" |
Ivan Berezovskiy | 45b6569 | 2018-10-26 19:40:24 +0400 | [diff] [blame] | 11 | gerrit_db_publish_port: 13306 |
| 12 | gerrit_publish_port: 18083 |
| 13 | gerrit_ssh_publish_port: 29417 |
Vyacheslav Struk | f0a6200 | 2019-06-21 15:56:43 +0300 | [diff] [blame] | 14 | gerrit_http_request_log: "" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 15 | docker: |
| 16 | client: |
| 17 | stack: |
| 18 | gerrit: |
| 19 | service: |
| 20 | server: |
| 21 | deploy: |
| 22 | restart_policy: |
| 23 | condition: any |
| 24 | image: ${_param:docker_image_gerrit} |
| 25 | ports: |
Ivan Berezovskiy | 45b6569 | 2018-10-26 19:40:24 +0400 | [diff] [blame] | 26 | - ${_param:gerrit_publish_port}:8080 |
| 27 | - ${_param:gerrit_ssh_publish_port}:29418 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 28 | volumes: |
| 29 | - /srv/volumes/gerrit:/var/gerrit/review_site |
Denis Egorenko | ea0336a | 2019-07-10 16:17:16 +0400 | [diff] [blame] | 30 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 31 | depends_on: |
| 32 | - db |
| 33 | environment: |
| 34 | #GERRIT_INIT_ARGS: "" |
| 35 | DATABASE_TYPE: "mysql" |
| 36 | DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address} |
| 37 | DB_ENV_MYSQL_USER: gerrit |
| 38 | DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 39 | DB_ENV_MYSQL_DB: gerrit |
| 40 | AUTH_TYPE: ${_param:gerrit_auth_type} |
| 41 | LDAP_SERVER: ${_param:gerrit_ldap_server} |
| 42 | LDAP_ACCOUNTPATTERN: 'uid={username}' |
| 43 | LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base} |
| 44 | LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base} |
| 45 | LDAP_USERNAME: ${_param:gerrit_ldap_bind_user} |
| 46 | LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password} |
Filip Pytloun | e6673c4 | 2017-05-11 16:43:03 +0200 | [diff] [blame] | 47 | WEBURL: ${_param:gerrit_public_host} |
Jiri Broulik | 7560930 | 2017-09-11 19:33:31 +0200 | [diff] [blame] | 48 | HTTPD_LISTENURL: ${_param:gerrit_http_listen_url} |
Vyacheslav Struk | f0a6200 | 2019-06-21 15:56:43 +0300 | [diff] [blame] | 49 | HTTPD_REQUESTLOG: ${_param:gerrit_http_request_log} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 50 | GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key} |
| 51 | GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password} |
| 52 | GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email} |
| 53 | CANLOADINIFRAME: "true" |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 54 | JAVA_OPTIONS: ${_param:gerrit_extra_opts} |
| 55 | https_proxy: ${_param:docker_https_proxy} |
| 56 | http_proxy: ${_param:docker_http_proxy} |
| 57 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 58 | db: |
| 59 | environment: |
| 60 | MYSQL_USER: gerrit |
| 61 | MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 62 | MYSQL_DATABASE: gerrit |
| 63 | MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password} |
Filip Pytloun | 6d4c51a | 2017-05-02 11:38:34 +0200 | [diff] [blame] | 64 | MYSQL_START_TIMEOUT: 300 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 65 | deploy: |
| 66 | restart_policy: |
| 67 | condition: any |
| 68 | image: "${_param:docker_image_mysql}" |
| 69 | ports: |
Ivan Berezovskiy | 45b6569 | 2018-10-26 19:40:24 +0400 | [diff] [blame] | 70 | - ${_param:gerrit_db_publish_port}:3306 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 71 | volumes: |
| 72 | - /srv/volumes/mysql:/var/lib/mysql |