Explorar el Código

Now with persistent storage

Zach Isbach hace 4 años
padre
commit
5172c24eb7
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      plays/docker/service.yaml

+ 9 - 0
plays/docker/service.yaml

@@ -9,3 +9,12 @@
       publish: [
         { published_port: 5000, target_port: 5000 }
       ]
+      mounts: [
+        {
+          type: volume,
+          driver_config: { name: glusterfs },
+          source: docker_registry,
+          target: /var/lib/registry,
+          readonly: no,
+        }
+      ]