blob: 95bc233f7d4ce998c27af07056be54e391252663 [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
2 _param:
3 docker_image_gerrit: tcpcloud/gerrit:2.13.6
Filip Pytlounde317732017-04-25 17:47:33 +02004 docker_image_mysql: tcpcloud/mysql:5.6
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 Pytloun7d6144a2017-04-13 13:36:45 +020011 docker:
12 client:
13 stack:
14 gerrit:
15 service:
16 server:
17 deploy:
18 restart_policy:
19 condition: any
20 image: ${_param:docker_image_gerrit}
21 ports:
22 - 18083:8080
23 - 29417:29418
24 volumes:
25 - /srv/volumes/gerrit:/var/gerrit/review_site
26 depends_on:
27 - db
28 environment:
29 #GERRIT_INIT_ARGS: ""
30 DATABASE_TYPE: "mysql"
31 DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address}
32 DB_ENV_MYSQL_USER: gerrit
33 DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
34 DB_ENV_MYSQL_DB: gerrit
35 AUTH_TYPE: ${_param:gerrit_auth_type}
36 LDAP_SERVER: ${_param:gerrit_ldap_server}
37 LDAP_ACCOUNTPATTERN: 'uid={username}'
38 LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base}
39 LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base}
40 LDAP_USERNAME: ${_param:gerrit_ldap_bind_user}
41 LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password}
Filip Pytloune6673c42017-05-11 16:43:03 +020042 WEBURL: ${_param:gerrit_public_host}
Jiri Broulik75609302017-09-11 19:33:31 +020043 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020044 GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key}
45 GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password}
46 GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email}
47 CANLOADINIFRAME: "true"
48 db:
49 environment:
50 MYSQL_USER: gerrit
51 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
52 MYSQL_DATABASE: gerrit
53 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
Filip Pytloun6d4c51a2017-05-02 11:38:34 +020054 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020055 deploy:
56 restart_policy:
57 condition: any
58 image: "${_param:docker_image_mysql}"
59 ports:
60 - 13306:3306
61 volumes:
62 - /srv/volumes/mysql:/var/lib/mysql