blob: d1a5aa75a679c651917ef6e32753a4040c895bba [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: ""
Filip Pytloun7d6144a2017-04-13 13:36:45 +02007 gerrit_ldap_account_base: ""
8 gerrit_ldap_group_base: ""
Jiri Broulik75609302017-09-11 19:33:31 +02009 gerrit_http_listen_url: http://*:8080/
Filip Pytloune7d4f862017-08-04 13:11:51 +020010 gerrit_extra_opts: ""
Ivan Berezovskiy45b65692018-10-26 19:40:24 +040011 gerrit_db_publish_port: 13306
12 gerrit_publish_port: 18083
13 gerrit_ssh_publish_port: 29417
Vyacheslav Strukf0a62002019-06-21 15:56:43 +030014 gerrit_http_request_log: ""
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
Denis Egorenkoea0336a2019-07-10 16:17:16 +040030 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun7d6144a2017-04-13 13:36:45 +020031 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 Pytloune6673c42017-05-11 16:43:03 +020047 WEBURL: ${_param:gerrit_public_host}
Jiri Broulik75609302017-09-11 19:33:31 +020048 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
Vyacheslav Strukf0a62002019-06-21 15:56:43 +030049 HTTPD_REQUESTLOG: ${_param:gerrit_http_request_log}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020050 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"
Denis Egorenko6c947322019-10-29 13:09:51 +040054 IGNORE_VERSIONCHECK: "false"
Denis Egorenkoa40a8dc2019-07-11 16:22:59 +040055 JAVA_OPTIONS: "-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts ${_param:gerrit_extra_opts}"
Filip Pytloune7d4f862017-08-04 13:11:51 +020056 https_proxy: ${_param:docker_https_proxy}
57 http_proxy: ${_param:docker_http_proxy}
58 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020059 db:
60 environment:
61 MYSQL_USER: gerrit
62 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
63 MYSQL_DATABASE: gerrit
64 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
Filip Pytloun6d4c51a2017-05-02 11:38:34 +020065 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020066 deploy:
67 restart_policy:
68 condition: any
69 image: "${_param:docker_image_mysql}"
70 ports:
Ivan Berezovskiy45b65692018-10-26 19:40:24 +040071 - ${_param:gerrit_db_publish_port}:3306
Filip Pytloun7d6144a2017-04-13 13:36:45 +020072 volumes:
73 - /srv/volumes/mysql:/var/lib/mysql