blob: 183f57dc6408c41d51f1feeb38b7473fd2381eda [file] [log] [blame]
Filip Pytlounebef02f2017-11-30 15:16:03 +01001classes:
2 - system.docker.client.compose
3parameters:
4 _param:
5 docker_image_gerrit: tcpcloud/gerrit:2.13.6
6 docker_image_mysql: tcpcloud/mysql:5.6
7 gerrit_ldap_server: ""
8 gerrit_ldap_bind_user: ""
9 gerrit_ldap_bind_password: ""
10 gerrit_ldap_account_base: ""
11 gerrit_ldap_group_base: ""
12 gerrit_http_listen_url: http://*:8080/
13 gerrit_extra_opts: ""
14 docker:
15 client:
16 compose:
17 gerrit:
18 service:
19 server:
20 image: ${_param:docker_image_gerrit}
21 restart: always
22 ports:
23 - 18083:8080
24 - 29417:29418
25 volumes:
26 - /srv/volumes/gerrit:/var/gerrit/review_site
27 depends_on:
28 - db
29 environment:
30 #GERRIT_INIT_ARGS: ""
31 DATABASE_TYPE: "mysql"
32 DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address}
33 DB_ENV_MYSQL_USER: gerrit
34 DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
35 DB_ENV_MYSQL_DB: gerrit
36 AUTH_TYPE: ${_param:gerrit_auth_type}
37 LDAP_SERVER: ${_param:gerrit_ldap_server}
38 LDAP_ACCOUNTPATTERN: 'uid={username}'
39 LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base}
40 LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base}
41 LDAP_USERNAME: ${_param:gerrit_ldap_bind_user}
42 LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password}
43 WEBURL: ${_param:gerrit_public_host}
44 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
45 GERRIT_ADMIN_SSH_PUBLIC: ${_param:gerrit_admin_public_key}
46 GERRIT_ADMIN_PWD: ${_param:gerrit_admin_password}
47 GERRIT_ADMIN_EMAIL: ${_param:gerrit_admin_email}
48 CANLOADINIFRAME: "true"
49 JAVA_OPTIONS: ${_param:gerrit_extra_opts}
50 https_proxy: ${_param:docker_https_proxy}
51 http_proxy: ${_param:docker_http_proxy}
52 no_proxy: ${_param:docker_no_proxy}
53 db:
54 environment:
55 MYSQL_USER: gerrit
56 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
57 MYSQL_DATABASE: gerrit
58 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
59 MYSQL_START_TIMEOUT: 300
60 deploy:
61 restart_policy:
62 condition: any
63 image: "${_param:docker_image_mysql}"
64 ports:
65 - 13306:3306
66 volumes:
67 - /srv/volumes/mysql:/var/lib/mysql
68 linux:
69 system:
70 directory:
71 /srv/volumes/gerrit:
72 makedirs: true