Ver código fonte

The reg we keep talking about

Zach Isbach 4 anos atrás
pai
commit
dc55fee6bc
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      plays/docker/service.yaml

+ 11 - 0
plays/docker/service.yaml

@@ -0,0 +1,11 @@
+- name: Start service
+  hosts: docker_reg
+  become: true
+  tasks:
+  - name: Registry
+    community.docker.docker_swarm_service:
+      name: registry
+      image: registry:2
+      publish: [
+        { published_port: 5000, target_port: 5000 }
+      ]