Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | docker_pushkin_replicas: 1 |
| 4 | docker_image_pushkin: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/pushkin:latest |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 5 | pushkin_db: pushkin |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 6 | docker: |
| 7 | client: |
| 8 | stack: |
| 9 | pushkin: |
| 10 | environment: |
| 11 | POSTGRES_USER: ${_param:pushkin_db_user} |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 12 | POSTGRES_PASSWORD: ${_param:pushkin_db_user_password} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 13 | POSTGRES_DB: ${_param:pushkin_db} |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 14 | PUSHKINDBHOST: ${_param:pushkin_db_host} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 15 | PUSHKINELASTICHOST: ${_param:haproxy_elasticsearch_bind_host} |
| 16 | service: |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 17 | api: |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 18 | image: ${_param:docker_image_pushkin} |
| 19 | deploy: |
| 20 | replicas: ${_param:docker_pushkin_replicas} |
| 21 | restart_policy: |
| 22 | condition: any |
| 23 | ports: |
| 24 | - ${_param:haproxy_pushkin_exposed_port}:${_param:haproxy_pushkin_bind_port} |
| 25 | volumes: |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 26 | - /srv/volumes/pushkin/api:/var/log/pushkin |