blob: 964899d5ea3b68ae787811d3699fc33164fab405 [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: ""
Ivan Berezovskiy45b65692018-10-26 19:40:24 +040012 gerrit_db_publish_port: 13306
13 gerrit_publish_port: 18083
14 gerrit_ssh_publish_port: 29417
Filip Pytloun7d6144a2017-04-13 13:36:45 +020015 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 Berezovskiy45b65692018-10-26 19:40:24 +040026 - ${_param:gerrit_publish_port}:8080
27 - ${_param:gerrit_ssh_publish_port}:29418
Filip Pytloun7d6144a2017-04-13 13:36:45 +020028 volumes:
29 - /srv/volumes/gerrit:/var/gerrit/review_site
30 depends_on:
31 - db
32 environment:
33 #GERRIT_INIT_ARGS: ""
34 DATABASE_TYPE: "mysql"
35 DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address}
36 DB_ENV_MYSQL_USER: gerrit
37 DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
38 DB_ENV_MYSQL_DB: gerrit
39 AUTH_TYPE: ${_param:gerrit_auth_type}
40 LDAP_SERVER: ${_param:gerrit_ldap_server}
41 LDAP_ACCOUNTPATTERN: 'uid={username}'
42 LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base}
43 LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base}
44 LDAP_USERNAME: ${_param:gerrit_ldap_bind_user}
45 LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password}
Filip Pytloune6673c42017-05-11 16:43:03 +020046 WEBURL: ${_param:gerrit_public_host}
Jiri Broulik75609302017-09-11 19:33:31 +020047 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020048 GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key}
49 GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password}
50 GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email}
51 CANLOADINIFRAME: "true"
Filip Pytloune7d4f862017-08-04 13:11:51 +020052 JAVA_OPTIONS: ${_param:gerrit_extra_opts}
53 https_proxy: ${_param:docker_https_proxy}
54 http_proxy: ${_param:docker_http_proxy}
55 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020056 db:
57 environment:
58 MYSQL_USER: gerrit
59 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
60 MYSQL_DATABASE: gerrit
61 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
Filip Pytloun6d4c51a2017-05-02 11:38:34 +020062 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020063 deploy:
64 restart_policy:
65 condition: any
66 image: "${_param:docker_image_mysql}"
67 ports:
Ivan Berezovskiy45b65692018-10-26 19:40:24 +040068 - ${_param:gerrit_db_publish_port}:3306
Filip Pytloun7d6144a2017-04-13 13:36:45 +020069 volumes:
70 - /srv/volumes/mysql:/var/lib/mysql