Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_janitor_monkey_replicas: 1 |
| 4 | docker_image_mongodb: library/mongo:3.4 |
| 5 | docker_mongodb_admin_username: admin |
| 6 | docker_mongodb_admin_password: password |
| 7 | docker: |
| 8 | client: |
| 9 | stack: |
| 10 | janitor_monkey: |
| 11 | environment: |
| 12 | MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username} |
| 13 | MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password} |
| 14 | service: |
| 15 | mongodb: |
| 16 | image: ${_param:docker_image_mongodb} |
| 17 | deploy: |
| 18 | replicas: ${_param:docker_janitor_monkey_replicas} |
| 19 | restart_policy: |
| 20 | condition: any |
| 21 | ports: |
| 22 | - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port} |
| 23 | volumes: |
| 24 | - /srv/volumes/mongodb:/data |