blob: 69b2a2cd9af0c5c1ddafcb6891db067f8fa98e3a [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: ""
7 gerrit_ldap_bind_password: ""
8 gerrit_ldap_account_base: ""
9 gerrit_ldap_group_base: ""
10 gerrit_http_listen_url: http://*:8080/
11 gerrit_extra_opts: ""
12 docker:
13 client:
14 compose:
15 gerrit:
16 service:
17 server:
18 image: ${_param:docker_image_gerrit}
19 restart: always
20 ports:
21 - 18083:8080
22 - 29417:29418
23 volumes:
24 - /srv/volumes/gerrit:/var/gerrit/review_site
25 depends_on:
26 - db
27 environment:
28 #GERRIT_INIT_ARGS: ""
29 DATABASE_TYPE: "mysql"
30 DB_PORT_3306_TCP_ADDR: ${_param:cluster_vip_address}
31 DB_ENV_MYSQL_USER: gerrit
32 DB_ENV_MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
33 DB_ENV_MYSQL_DB: gerrit
34 AUTH_TYPE: ${_param:gerrit_auth_type}
35 LDAP_SERVER: ${_param:gerrit_ldap_server}
36 LDAP_ACCOUNTPATTERN: 'uid={username}'
37 LDAP_ACCOUNTBASE: ${_param:gerrit_ldap_account_base}
38 LDAP_GROUPBASE: ${_param:gerrit_ldap_group_base}
39 LDAP_USERNAME: ${_param:gerrit_ldap_bind_user}
40 LDAP_PASSWORD: ${_param:gerrit_ldap_bind_password}
41 WEBURL: ${_param:gerrit_public_host}
42 HTTPD_LISTENURL: ${_param:gerrit_http_listen_url}
43 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 JAVA_OPTIONS: ${_param:gerrit_extra_opts}
48 https_proxy: ${_param:docker_https_proxy}
49 http_proxy: ${_param:docker_http_proxy}
50 no_proxy: ${_param:docker_no_proxy}
51 db:
52 environment:
53 MYSQL_USER: gerrit
54 MYSQL_PASSWORD: ${_param:mysql_gerrit_password}
55 MYSQL_DATABASE: gerrit
56 MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password}
57 MYSQL_START_TIMEOUT: 300
58 deploy:
59 restart_policy:
60 condition: any
61 image: "${_param:docker_image_mysql}"
62 ports:
63 - 13306:3306
64 volumes:
65 - /srv/volumes/mysql:/var/lib/mysql
Jakub Josef5540cde2017-12-07 15:15:12 +010066 network:
67 default:
68 ipam:
69 driver: default
70 config:
71 - subnet: 172.30.0.0/24
Filip Pytlounebef02f2017-11-30 15:16:03 +010072 linux:
73 system:
74 directory:
75 /srv/volumes/gerrit:
76 makedirs: true