blob: 2d5f4a73aa97df0333e4ba36d16519b415bdd097 [file] [log] [blame]
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +03001parameters:
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