|
@@ -1,3 +1,7 @@
|
|
|
+volumes:
|
|
|
+ nginx_conf:
|
|
|
+
|
|
|
+
|
|
|
services:
|
|
|
keepalive-disabled:
|
|
|
image: web
|
|
@@ -18,7 +22,7 @@ services:
|
|
|
VIRTUAL_HOST: keepalive-enabled.nginx-proxy.test
|
|
|
labels:
|
|
|
com.github.nginx-proxy.nginx-proxy.keepalive: "64"
|
|
|
-
|
|
|
+
|
|
|
keepalive-auto:
|
|
|
image: web
|
|
|
deploy:
|
|
@@ -31,8 +35,30 @@ services:
|
|
|
VIRTUAL_HOST: keepalive-auto.nginx-proxy.test
|
|
|
|
|
|
sut:
|
|
|
+ profiles:
|
|
|
+ - singleContainer
|
|
|
image: nginxproxy/nginx-proxy:test
|
|
|
volumes:
|
|
|
- - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
- environment:
|
|
|
+ - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
+ environment: &nginxProxyEnv
|
|
|
HTTPS_METHOD: nohttps
|
|
|
+
|
|
|
+ sut-dockergen:
|
|
|
+ profiles:
|
|
|
+ - separateContainers
|
|
|
+ image: nginxproxy/nginx-proxy:test-dockergen
|
|
|
+ volumes:
|
|
|
+ - &confVolume nginx_conf:/etc/nginx/conf.d
|
|
|
+ - *dockerSocket
|
|
|
+ environment:
|
|
|
+ <<: *nginxProxyEnv
|
|
|
+
|
|
|
+ sut-nginx:
|
|
|
+ profiles:
|
|
|
+ - separateContainers
|
|
|
+ container_name: nginx-proxy
|
|
|
+ image: nginx:alpine
|
|
|
+ volumes:
|
|
|
+ - *confVolume
|
|
|
+ labels:
|
|
|
+ - "com.github.nginx-proxy.nginx-proxy.nginx"
|