2
0
Эх сурвалжийг харах

test: test_acme_http_challenge_location separate container

Nicolas Duchon 5 сар өмнө
parent
commit
e736f84b87

+ 28 - 0
test/test_acme_http_challenge_location/test_acme_challenge_location_disabled.yml

@@ -1,3 +1,6 @@
+volumes:
+  nginx_conf:
+
 services:
   web1:
     image: web
@@ -36,6 +39,8 @@ services:
       ACME_HTTP_CHALLENGE_LOCATION: "true"
 
   sut:
+    profiles:
+      - singleContainer
     image: nginxproxy/nginx-proxy:test
     environment:
       ACME_HTTP_CHALLENGE_LOCATION: "false"
@@ -43,3 +48,26 @@ services:
       - /var/run/docker.sock:/tmp/docker.sock:ro
       - ./certs:/etc/nginx/certs:ro
       - ./acme_root:/usr/share/nginx/html:ro
+  
+  sutnginx:
+    profiles:
+      - separateContainers
+    container_name: nginx-proxy
+    image: nginx:alpine
+    volumes:
+      - nginx_conf:/etc/nginx/conf.d:ro
+      - ./certs:/etc/nginx/certs:ro
+      - ./acme_root:/usr/share/nginx/html:ro
+    labels:
+      - "com.github.nginx-proxy.nginx-proxy.nginx"
+
+  sutdockergen:
+    profiles:
+      - separateContainers
+    image: nginxproxy/nginx-proxy:test-dockergen
+    environment:
+      ACME_HTTP_CHALLENGE_LOCATION: "false"
+    volumes:
+      - /var/run/docker.sock:/tmp/docker.sock:ro
+      - nginx_conf:/etc/nginx/conf.d
+      - ./certs:/etc/nginx/certs:ro

+ 26 - 0
test/test_acme_http_challenge_location/test_acme_challenge_location_enabled_is_default.yml

@@ -1,3 +1,6 @@
+volumes:
+  nginx_conf:
+
 services:
   web1:
     image: web
@@ -36,8 +39,31 @@ services:
       ACME_HTTP_CHALLENGE_LOCATION: "false"
 
   sut:
+    profiles:
+      - singleContainer
     image: nginxproxy/nginx-proxy:test
     volumes:
       - /var/run/docker.sock:/tmp/docker.sock:ro
       - ./certs:/etc/nginx/certs:ro
       - ./acme_root:/usr/share/nginx/html:ro
+  
+  sutnginx:
+    profiles:
+      - separateContainers
+    container_name: nginx-proxy
+    image: nginx:alpine
+    volumes:
+      - nginx_conf:/etc/nginx/conf.d:ro
+      - ./certs:/etc/nginx/certs:ro
+      - ./acme_root:/usr/share/nginx/html:ro
+    labels:
+      - "com.github.nginx-proxy.nginx-proxy.nginx"
+
+  sutdockergen:
+    profiles:
+      - separateContainers
+    image: nginxproxy/nginx-proxy:test-dockergen
+    volumes:
+      - /var/run/docker.sock:/tmp/docker.sock:ro
+      - nginx_conf:/etc/nginx/conf.d
+      - ./certs:/etc/nginx/certs:ro

+ 28 - 0
test/test_acme_http_challenge_location/test_acme_challenge_location_legacy.yml

@@ -1,3 +1,6 @@
+volumes:
+  nginx_conf:
+
 services:
   web1:
     image: web
@@ -17,6 +20,8 @@ services:
       HTTPS_METHOD: noredirect
 
   sut:
+    profiles:
+      - singleContainer
     image: nginxproxy/nginx-proxy:test
     environment:
       ACME_HTTP_CHALLENGE_LOCATION: "legacy"
@@ -24,3 +29,26 @@ services:
       - /var/run/docker.sock:/tmp/docker.sock:ro
       - ./certs:/etc/nginx/certs:ro
       - ./acme_root:/usr/share/nginx/html:ro
+  
+  sutnginx:
+    profiles:
+      - separateContainers
+    container_name: nginx-proxy
+    image: nginx:alpine
+    labels:
+      - "com.github.nginx-proxy.nginx-proxy.nginx"
+    volumes:
+      - nginx_conf:/etc/nginx/conf.d:ro
+      - ./certs:/etc/nginx/certs:ro
+      - ./acme_root:/usr/share/nginx/html:ro
+
+  sutdockergen:
+    profiles:
+      - separateContainers
+    image: nginxproxy/nginx-proxy:test-dockergen
+    environment:
+      ACME_HTTP_CHALLENGE_LOCATION: "legacy"
+    volumes:
+      - /var/run/docker.sock:/tmp/docker.sock:ro
+      - nginx_conf:/etc/nginx/conf.d
+      - ./certs:/etc/nginx/certs:ro