|
@@ -1,3 +1,7 @@
|
|
|
|
+volumes:
|
|
|
|
+ nginx_conf:
|
|
|
|
+
|
|
|
|
+
|
|
services:
|
|
services:
|
|
web:
|
|
web:
|
|
image: web
|
|
image: web
|
|
@@ -8,6 +12,26 @@ services:
|
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
|
|
|
|
|
sut:
|
|
sut:
|
|
|
|
+ profiles:
|
|
|
|
+ - singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
volumes:
|
|
- - /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
|
|
+ - &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
+
|
|
|
|
+ sut-dockergen:
|
|
|
|
+ profiles:
|
|
|
|
+ - separateContainers
|
|
|
|
+ image: nginxproxy/nginx-proxy:test-dockergen
|
|
|
|
+ volumes:
|
|
|
|
+ - &confVolume nginx_conf:/etc/nginx/conf.d
|
|
|
|
+ - *dockerSocket
|
|
|
|
+
|
|
|
|
+ sut-nginx:
|
|
|
|
+ profiles:
|
|
|
|
+ - separateContainers
|
|
|
|
+ container_name: nginx-proxy
|
|
|
|
+ image: nginx:alpine
|
|
|
|
+ volumes:
|
|
|
|
+ - *confVolume
|
|
|
|
+ labels:
|
|
|
|
+ - "com.github.nginx-proxy.nginx-proxy.nginx"
|