blob: 7985217b869b04f9be6a34828907841cad5361f9 [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
4 _param:
Filip Pytloun7d6144a2017-04-13 13:36:45 +02005 gerrit_ldap_server: ""
6 gerrit_ldap_bind_user: ""
7 gerrit_ldap_bind_password: ""
8 gerrit_ldap_account_base: ""
9 gerrit_ldap_group_base: ""
Jiri Broulik75609302017-09-11 19:33:31 +020010 gerrit_http_listen_url: http://*:8080/
Filip Pytloune7d4f862017-08-04 13:11:51 +020011 gerrit_extra_opts: ""
Filip Pytloun7d6144a2017-04-13 13:36:45 +020012 docker:
13 client:
14 stack:
15 gerrit:
16 service:
17 server:
18 deploy:
19 restart_policy:
20 condition: any
21 image: ${_param:docker_image_gerrit}
22 ports:
23 - 18083:8080
24 - 29417:29418
25 volumes:
26 - /srv/volumes/gerrit:/var/gerrit/review_site
27 depends_on:
28 - db
29 environment:
30 #GERRIT_INIT_ARGS: ""
31 DATABASE_TYPE: "mysql"
32 DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address}
33 DB_ENV_MYSQL_USER: gerrit
34 DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
35 DB_ENV_MYSQL_DB: gerrit
36 AUTH_TYPE: ${_param:gerrit_auth_type}
37 LDAP_SERVER: ${_param:gerrit_ldap_server}
38 LDAP_ACCOUNTPATTERN: 'uid={username}'
39 LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base}
40 LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base}
41 LDAP_USERNAME: ${_param:gerrit_ldap_bind_user}
42 LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password}
Filip Pytloune6673c42017-05-11 16:43:03 +020043 WEBURL: ${_param:gerrit_public_host}
Jiri Broulik75609302017-09-11 19:33:31 +020044 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020045 GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key}
46 GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password}
47 GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email}
48 CANLOADINIFRAME: "true"
Filip Pytloune7d4f862017-08-04 13:11:51 +020049 JAVA_OPTIONS: ${_param:gerrit_extra_opts}
50 https_proxy: ${_param:docker_https_proxy}
51 http_proxy: ${_param:docker_http_proxy}
52 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020053 db:
54 environment:
55 MYSQL_USER: gerrit
56 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
57 MYSQL_DATABASE: gerrit
58 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
Filip Pytloun6d4c51a2017-05-02 11:38:34 +020059 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020060 deploy:
61 restart_policy:
62 condition: any
63 image: "${_param:docker_image_mysql}"
64 ports:
65 - 13306:3306
66 volumes:
67 - /srv/volumes/mysql:/var/lib/mysql