Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_pushkin_db_replicas: 1 |
| 4 | docker_image_pushkin_db: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/pushkindb:latest |
| 5 | pushkin_db_password: pushkin |
| 6 | pushkin_db_user: pushkin |
| 7 | pushkin_db: pushkin |
| 8 | docker_pushkin_replicas: 1 |
| 9 | docker_image_pushkin: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/pushkin:latest |
| 10 | elasticsearch_replicas: 1 |
| 11 | docker_image_oss_elasticsearch: docker-sandbox.sandbox.mirantis.net/vstoiko/oss/elasticsearch:latest |
| 12 | docker: |
| 13 | client: |
| 14 | stack: |
| 15 | pushkin: |
| 16 | environment: |
| 17 | POSTGRES_USER: ${_param:pushkin_db_user} |
| 18 | POSTGRES_PASSWORD: ${_param:pushkin_db_password} |
| 19 | POSTGRES_DB: ${_param:pushkin_db} |
| 20 | PUSHKINDBHOST: ${_param:haproxy_pushkin_db_bind_host} |
| 21 | PUSHKINELASTICHOST: ${_param:haproxy_elasticsearch_bind_host} |
| 22 | service: |
| 23 | db: |
| 24 | image: ${_param:docker_image_pushkin_db} |
| 25 | deploy: |
| 26 | replicas: ${_param:docker_pushkin_db_replicas} |
| 27 | restart_policy: |
| 28 | condition: any |
| 29 | ports: |
| 30 | - ${_param:haproxy_pushkin_db_exposed_port}:${_param:haproxy_pushkin_db_bind_port} |
| 31 | volumes: |
| 32 | - /srv/volumes/pushkin/data:/var/lib/postgresql/data |
| 33 | backend: |
| 34 | image: ${_param:docker_image_pushkin} |
| 35 | deploy: |
| 36 | replicas: ${_param:docker_pushkin_replicas} |
| 37 | restart_policy: |
| 38 | condition: any |
| 39 | ports: |
| 40 | - ${_param:haproxy_pushkin_exposed_port}:${_param:haproxy_pushkin_bind_port} |
| 41 | volumes: |
| 42 | - /srv/volumes/pushkin/logs:/var/log/pushkin |
| 43 | elasticsearch: |
| 44 | image: ${_param:docker_image_oss_elasticsearch} |
| 45 | deploy: |
| 46 | replicas: ${_param:elasticsearch_replicas} |
| 47 | restart_policy: |
| 48 | condition: any |
| 49 | ports: |
| 50 | - ${_param:haproxy_elasticsearch_exposed_port}:${_param:haproxy_elasticsearch_bind_port} |
| 51 | volumes: |
| 52 | - /srv/volumes/elasticsearch:/usr/share/elasticsearch/data |