Add mongodb service metadata
Change-Id: Ibc504d1267e4d02681a11df6609035428d0f5ffd
diff --git a/docker/swarm/stack/janitor_monkey.yml b/docker/swarm/stack/janitor_monkey.yml
new file mode 100644
index 0000000..2d5f4a7
--- /dev/null
+++ b/docker/swarm/stack/janitor_monkey.yml
@@ -0,0 +1,24 @@
+parameters:
+ _param:
+ docker_janitor_monkey_replicas: 1
+ docker_image_mongodb: library/mongo:3.4
+ docker_mongodb_admin_username: admin
+ docker_mongodb_admin_password: password
+ docker:
+ client:
+ stack:
+ janitor_monkey:
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username}
+ MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password}
+ service:
+ mongodb:
+ image: ${_param:docker_image_mongodb}
+ deploy:
+ replicas: ${_param:docker_janitor_monkey_replicas}
+ restart_policy:
+ condition: any
+ ports:
+ - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port}
+ volumes:
+ - /srv/volumes/mongodb:/data