blob: 48466ef4562f2e33fdf6db276ef4bd0d43ad7237 [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: ""
10
11 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}
Pavel Cizinskyf09bd082017-04-26 19:07:37 +020042 WEBURL: http://${_param:gerrit_public_host}:8080
Filip Pytloun7d6144a2017-04-13 13:36:45 +020043 GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key}
44 GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password}
45 GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email}
46 CANLOADINIFRAME: "true"
47 db:
48 environment:
49 MYSQL_USER: gerrit
50 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
51 MYSQL_DATABASE: gerrit
52 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
Filip Pytloun6d4c51a2017-05-02 11:38:34 +020053 MYSQL_START_TIMEOUT: 300
Filip Pytloun7d6144a2017-04-13 13:36:45 +020054 deploy:
55 restart_policy:
56 condition: any
57 image: "${_param:docker_image_mysql}"
58 ports:
59 - 13306:3306
60 volumes:
61 - /srv/volumes/mysql:/var/lib/mysql