blob: 49d0a1170d344ae3682328106ad12330f4463b8e [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
4 _param:
5 docker_image_gerrit: tcpcloud/gerrit:2.13.6
Filip Pytlounde317732017-04-25 17:47:33 +02006 docker_image_mysql: tcpcloud/mysql:5.6
Filip Pytloun7d6144a2017-04-13 13:36:45 +02007 gerrit_ldap_server: ""
8 gerrit_ldap_bind_user: ""
9 gerrit_ldap_bind_password: ""
10 gerrit_ldap_account_base: ""
11 gerrit_ldap_group_base: ""
Jiri Broulik75609302017-09-11 19:33:31 +020012 gerrit_http_listen_url: http://*:8080/
Filip Pytloune7d4f862017-08-04 13:11:51 +020013 gerrit_extra_opts: ""
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 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 Pytloune6673c42017-05-11 16:43:03 +020045 WEBURL: ${_param:gerrit_public_host}
Jiri Broulik75609302017-09-11 19:33:31 +020046 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020047 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 Pytloune7d4f862017-08-04 13:11:51 +020051 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 Pytloun7d6144a2017-04-13 13:36:45 +020055 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 Pytloun6d4c51a2017-05-02 11:38:34 +020061 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020062 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