Zach Isbach пре 4 година
родитељ
комит
01586d2110

BIN
info/Module ngx_http_proxy_module.webloc


BIN
info/Verify repository client with certificates | Docker Documentation.webloc


BIN
info/community.docker.docker_stack module – docker stack module — Ansible Documentation.webloc


+ 8 - 1
plays/docker/service.yaml

@@ -6,6 +6,13 @@
     community.docker.docker_swarm_service:
       name: registry
       image: registry:2
+      env:
+#        REGISTRY_HTTP_ADDR: '0.0.0.0:443'
+#        REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
+#        REGISTRY_HTTP_TLS_KEY: /certs/domain.key
+#        REGISTRY_HTTP_TLS_LETSENCRYPT_CACHEFILE: /var/lib/registry/letsencrypt
+#        REGISTRY_HTTP_TLS_LETSENCRYPT_EMAIL: letsencrypt@zi3.fi
+#        REGISTRY_HTTP_TLS_LETSENCRYPT_HOSTS_0: registry.docker.aws.zi3.fi
       publish: [
         { published_port: 5000, target_port: 5000 }
       ]
@@ -13,7 +20,7 @@
         {
           type: volume,
           driver_config: { name: glusterfs },
-          source: docker_registry,
+          source: docker_registry/data,
           target: /var/lib/registry,
           readonly: no,
         }

+ 10 - 0
plays/docker/stack.yaml

@@ -0,0 +1,10 @@
+- name: Start service
+  hosts: docker_reg
+  become: true
+  tasks:
+  - name: Deploy stack from a compose file
+    community.docker.docker_stack:
+      state: present
+      name: http
+      compose:
+        - ../../docker/http/docker-compose.yml