Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 1 | parameters: |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 2 | _param: |
| 3 | docker_image_mysql: mysql:5.6 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 4 | docker: |
| 5 | client: |
| 6 | service: |
| 7 | mysql: |
| 8 | environment: |
| 9 | MYSQL_USER: gerrit |
| 10 | MYSQL_PASSWORD: ${_param:mysql_gerrit_password} |
| 11 | MYSQL_DATABASE: gerrit |
| 12 | MYSQL_ROOT_PASSWORD: ${_param:mysql_admin_password} |
| 13 | restart: |
| 14 | condition: any |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 15 | image: "${_param:docker_image_mysql}" |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 16 | ports: |
| 17 | - 13306:3306 |
| 18 | volume: |
| 19 | data: |
| 20 | type: bind |
| 21 | source: /srv/volumes/mysql |
| 22 | destination: /var/lib/mysql |