Initial support for docker services on swarm
diff --git a/README.rst b/README.rst
index 7884960..41b956b 100644
--- a/README.rst
+++ b/README.rst
@@ -127,6 +127,33 @@
depends_on:
- db
+Service
+-------
+
+To deploy service in Swarm mode, you can use ``docker.client.service``:
+
+.. code-block:: yaml
+
+ parameters:
+ docker:
+ client:
+ service:
+ postgresql:
+ environment:
+ POSTGRES_USER: user
+ POSTGRES_PASSWORD: password
+ POSTGRES_DB: mydb
+ restart:
+ condition: on-failure
+ image: "postgres:9.5"
+ ports:
+ - 5432:5432
+ volume:
+ data:
+ type: bind
+ source: /srv/volumes/postgresql/maas
+ destination: /var/lib/postgresql/data
+
Registry
--------