                      (->service-labels service)
                      (->service-metadata service image))
    :TaskTemplate   {:ContainerSpec {:Image   image
-                                    :Labels  (->container-metadata service)
+                                    :Labels  (->service-container-metadata service)
                                     :Mounts  (->service-mounts service)
                                     :Secrets (:secrets service)
                                     :Env     (->service-variables service)}

       (map (fn [l] {(:name l) (:value l)}))
       (into {})))

(defn ->service-mounts
  [service]
  (->> (:mounts service)
       (map (fn [v] {:ReadOnly (:readOnly v)
                     :Source   (:host v)
                     :Target   (:containerPath v)
                     :Type     (:type v)}))
       (into [])))

(defn- ->service-placement-contraints

                                :swarmpit.service.distribution.type distribution-type} %)))
    @metadata))

(defn ->service-container-metadata
  [service]
  (let [stack (:stack service)
        metadata (volatile! {})]
