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