mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 01:38:15 +00:00
ci: ensure all compose files are valid compose v2 + formatting
This commit is contained in:
parent
b5cac06305
commit
060f09cfce
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy
|
image: nginxproxy/nginx-proxy
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,8 +9,7 @@ web:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web.nginx-proxy
|
VIRTUAL_HOST: web.nginx-proxy
|
||||||
|
|
||||||
|
reverseproxy:
|
||||||
reverseproxy:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
container_name: reverseproxy
|
container_name: reverseproxy
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -32,4 +32,3 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WEB_PORTS: 82
|
WEB_PORTS: 82
|
||||||
VIRTUAL_HOST: webB.nginx-proxy
|
VIRTUAL_HOST: webB.nginx-proxy
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web1.nginx-proxy.tld
|
VIRTUAL_HOST: web1.nginx-proxy.tld
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -14,8 +17,7 @@ web2:
|
|||||||
WEB_PORTS: 82
|
WEB_PORTS: 82
|
||||||
VIRTUAL_HOST: web2.nginx-proxy.tld
|
VIRTUAL_HOST: web2.nginx-proxy.tld
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/f00.sock:ro
|
- /var/run/docker.sock:/f00.sock:ro
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
nginx-proxy:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./my_custom_proxy_settings.conf:/etc/nginx/vhost.d/default_location:ro
|
- ./my_custom_proxy_settings.conf:/etc/nginx/vhost.d/default_location:ro
|
||||||
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
|
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/web3.nginx-proxy.example_location:ro
|
||||||
|
|
||||||
web1:
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -13,7 +16,7 @@ web1:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web1.nginx-proxy.example
|
VIRTUAL_HOST: web1.nginx-proxy.example
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -21,7 +24,7 @@ web2:
|
|||||||
WEB_PORTS: 82
|
WEB_PORTS: 82
|
||||||
VIRTUAL_HOST: web2.nginx-proxy.example
|
VIRTUAL_HOST: web2.nginx-proxy.example
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# GIVEN a webserver with VIRTUAL_HOST set to web1.tld
|
version: "2"
|
||||||
web1:
|
|
||||||
|
services:
|
||||||
|
# GIVEN a webserver with VIRTUAL_HOST set to web1.tld
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -7,9 +10,8 @@ web1:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web1.tld
|
VIRTUAL_HOST: web1.tld
|
||||||
|
|
||||||
|
# WHEN nginx-proxy runs with DEFAULT_HOST set to web1.tld
|
||||||
# WHEN nginx-proxy runs with DEFAULT_HOST set to web1.tld
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -5,6 +7,7 @@ services:
|
|||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
DEFAULT_ROOT: none
|
DEFAULT_ROOT: none
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
version: '3'
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
nginxproxy:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nginxproxy:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./custom-fallback.conf:/etc/nginx/conf.d/zzz-custom-fallback.conf:ro
|
- ./custom-fallback.conf:/etc/nginx/conf.d/zzz-custom-fallback.conf:ro
|
||||||
|
|
||||||
http-only:
|
http-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./nodefault.certs:/etc/nginx/certs:ro
|
- ./nodefault.certs:/etc/nginx/certs:ro
|
||||||
|
|
||||||
https-and-http:
|
https-and-http:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -11,6 +14,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: https-and-http.nginx-proxy.test
|
VIRTUAL_HOST: https-and-http.nginx-proxy.test
|
||||||
|
|
||||||
https-only:
|
https-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -19,6 +23,7 @@ services:
|
|||||||
WEB_PORTS: "82"
|
WEB_PORTS: "82"
|
||||||
VIRTUAL_HOST: https-only.nginx-proxy.test
|
VIRTUAL_HOST: https-only.nginx-proxy.test
|
||||||
HTTPS_METHOD: nohttp
|
HTTPS_METHOD: nohttp
|
||||||
|
|
||||||
http-only:
|
http-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -27,6 +32,7 @@ services:
|
|||||||
WEB_PORTS: "83"
|
WEB_PORTS: "83"
|
||||||
VIRTUAL_HOST: http-only.nginx-proxy.test
|
VIRTUAL_HOST: http-only.nginx-proxy.test
|
||||||
HTTPS_METHOD: nohttps
|
HTTPS_METHOD: nohttps
|
||||||
|
|
||||||
missing-cert:
|
missing-cert:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -6,6 +8,7 @@ services:
|
|||||||
- ./withdefault.certs:/etc/nginx/certs:ro
|
- ./withdefault.certs:/etc/nginx/certs:ro
|
||||||
environment:
|
environment:
|
||||||
HTTPS_METHOD: redirect
|
HTTPS_METHOD: redirect
|
||||||
|
|
||||||
https-only:
|
https-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -6,6 +8,7 @@ services:
|
|||||||
- ./withdefault.certs:/etc/nginx/certs:ro
|
- ./withdefault.certs:/etc/nginx/certs:ro
|
||||||
environment:
|
environment:
|
||||||
HTTPS_METHOD: nohttp
|
HTTPS_METHOD: nohttp
|
||||||
|
|
||||||
https-only:
|
https-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -13,6 +16,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WEB_PORTS: "82"
|
WEB_PORTS: "82"
|
||||||
VIRTUAL_HOST: https-only.nginx-proxy.test
|
VIRTUAL_HOST: https-only.nginx-proxy.test
|
||||||
|
|
||||||
missing-cert:
|
missing-cert:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -6,6 +8,7 @@ services:
|
|||||||
- ./withdefault.certs:/etc/nginx/certs:ro
|
- ./withdefault.certs:/etc/nginx/certs:ro
|
||||||
environment:
|
environment:
|
||||||
HTTPS_METHOD: nohttp
|
HTTPS_METHOD: nohttp
|
||||||
|
|
||||||
https-only:
|
https-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -5,6 +7,7 @@ services:
|
|||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
HTTPS_METHOD: redirect
|
HTTPS_METHOD: redirect
|
||||||
|
|
||||||
http-only:
|
http-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
@ -5,6 +7,7 @@ services:
|
|||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
HTTPS_METHOD: nohttps
|
HTTPS_METHOD: nohttps
|
||||||
|
|
||||||
http-only:
|
http-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./withdefault.certs:/etc/nginx/certs:ro
|
- ./withdefault.certs:/etc/nginx/certs:ro
|
||||||
|
|
||||||
https-and-http:
|
https-and-http:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -11,6 +14,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: https-and-http.nginx-proxy.test
|
VIRTUAL_HOST: https-and-http.nginx-proxy.test
|
||||||
|
|
||||||
https-only:
|
https-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -19,6 +23,7 @@ services:
|
|||||||
WEB_PORTS: "82"
|
WEB_PORTS: "82"
|
||||||
VIRTUAL_HOST: https-only.nginx-proxy.test
|
VIRTUAL_HOST: https-only.nginx-proxy.test
|
||||||
HTTPS_METHOD: nohttp
|
HTTPS_METHOD: nohttp
|
||||||
|
|
||||||
http-only:
|
http-only:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -27,6 +32,7 @@ services:
|
|||||||
WEB_PORTS: "83"
|
WEB_PORTS: "83"
|
||||||
VIRTUAL_HOST: http-only.nginx-proxy.test
|
VIRTUAL_HOST: http-only.nginx-proxy.test
|
||||||
HTTPS_METHOD: nohttps
|
HTTPS_METHOD: nohttps
|
||||||
|
|
||||||
missing-cert:
|
missing-cert:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -6,7 +9,7 @@ web:
|
|||||||
WEB_PORTS: 80
|
WEB_PORTS: 80
|
||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
|
|
||||||
web-server-tokens-off:
|
web-server-tokens-off:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -15,8 +18,7 @@ web-server-tokens-off:
|
|||||||
VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
|
VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
|
||||||
SERVER_TOKENS: "off"
|
SERVER_TOKENS: "off"
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -6,7 +9,7 @@ web:
|
|||||||
WEB_PORTS: 80
|
WEB_PORTS: 80
|
||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
|
|
||||||
web-server-tokens-off:
|
web-server-tokens-off:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -15,8 +18,7 @@ web-server-tokens-off:
|
|||||||
VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
|
VIRTUAL_HOST: web-server-tokens-off.nginx-proxy.tld
|
||||||
SERVER_TOKENS: "off"
|
SERVER_TOKENS: "off"
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
http2-global-disabled:
|
http2-global-disabled:
|
||||||
image: web
|
image: web
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
http3-global-disabled:
|
http3-global-disabled:
|
||||||
image: web
|
image: web
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
http3-global-enabled:
|
http3-global-enabled:
|
||||||
image: web
|
image: web
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
http3-vhost-enabled:
|
http3-vhost-enabled:
|
||||||
image: web
|
image: web
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -7,7 +10,7 @@ web1:
|
|||||||
VIRTUAL_HOST: web1.nginx-proxy.example
|
VIRTUAL_HOST: web1.nginx-proxy.example
|
||||||
NETWORK_ACCESS: internal
|
NETWORK_ACCESS: internal
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -15,9 +18,8 @@ web2:
|
|||||||
WEB_PORTS: 82
|
WEB_PORTS: 82
|
||||||
VIRTUAL_HOST: web2.nginx-proxy.example
|
VIRTUAL_HOST: web2.nginx-proxy.example
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./network_internal.conf:/etc/nginx/network_internal.conf:ro
|
- ./network_internal.conf:/etc/nginx/network_internal.conf:ro
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -9,7 +12,7 @@ web1:
|
|||||||
VIRTUAL_DEST: /
|
VIRTUAL_DEST: /
|
||||||
NETWORK_ACCESS: internal
|
NETWORK_ACCESS: internal
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -19,9 +22,8 @@ web2:
|
|||||||
VIRTUAL_PATH: /web2/
|
VIRTUAL_PATH: /web2/
|
||||||
VIRTUAL_DEST: /
|
VIRTUAL_DEST: /
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./network_internal.conf:/etc/nginx/network_internal.conf:ro
|
- ./network_internal.conf:/etc/nginx/network_internal.conf:ro
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net1:
|
net1:
|
||||||
@ -28,7 +28,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net1
|
- net1
|
||||||
|
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
keepalive-disabled:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
keepalive-disabled:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -6,7 +9,7 @@ keepalive-disabled:
|
|||||||
WEB_PORTS: 80
|
WEB_PORTS: 80
|
||||||
VIRTUAL_HOST: keepalive-disabled.nginx-proxy.test
|
VIRTUAL_HOST: keepalive-disabled.nginx-proxy.test
|
||||||
|
|
||||||
keepalive-enabled:
|
keepalive-enabled:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -16,8 +19,7 @@ keepalive-enabled:
|
|||||||
labels:
|
labels:
|
||||||
com.github.nginx-proxy.nginx-proxy.keepalive: "64"
|
com.github.nginx-proxy.nginx-proxy.keepalive: "64"
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
loadbalance-hash:
|
loadbalance-hash:
|
||||||
image: web
|
image: web
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,10 +9,10 @@ web1:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: nginx-proxy.test
|
VIRTUAL_HOST: nginx-proxy.test
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
container_name: sut
|
container_name: sut
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
LOG_FORMAT: "$$remote_addr - $$remote_user [$$time_local] \"$$request\" $$status $$body_bytes_sent \"$$http_referer\" \"$$http_user_agent\" request_time=$$request_time $$upstream_response_time"
|
LOG_FORMAT: '$$remote_addr - $$remote_user [$$time_local] "$$request" $$status $$body_bytes_sent "$$http_referer" "$$http_user_agent" request_time=$$request_time $$upstream_response_time'
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,8 +9,7 @@ web:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: webA.nginx-proxy.tld,webB.nginx-proxy.tld
|
VIRTUAL_HOST: webA.nginx-proxy.tld,webB.nginx-proxy.tld
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net1: {}
|
net1: {}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -7,8 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||||
VIRTUAL_PORT: "90"
|
VIRTUAL_PORT: "90"
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -8,7 +11,7 @@ web:
|
|||||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||||
VIRTUAL_PORT: 90
|
VIRTUAL_PORT: 90
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -7,7 +10,7 @@ web:
|
|||||||
WEB_PORTS: "80 81"
|
WEB_PORTS: "80 81"
|
||||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,8 +9,7 @@ web:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net1:
|
net1:
|
||||||
@ -28,7 +28,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net1
|
- net1
|
||||||
|
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net1:
|
net1:
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -14,7 +17,7 @@ web2:
|
|||||||
WEB_PORTS: 83
|
WEB_PORTS: 83
|
||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -23,7 +26,7 @@ web3:
|
|||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
net: "none"
|
net: "none"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web:
|
|||||||
WEB_PORTS: 81
|
WEB_PORTS: 81
|
||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -7,7 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
net: "none"
|
net: "none"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web5:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web5:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "85"
|
- "85"
|
||||||
@ -6,11 +9,11 @@ web5:
|
|||||||
WEB_PORTS: "85"
|
WEB_PORTS: "85"
|
||||||
VIRTUAL_HOST: "web5.nginx-proxy.tld"
|
VIRTUAL_HOST: "web5.nginx-proxy.tld"
|
||||||
|
|
||||||
# Intended for testing with `dh-file` container.
|
# Intended for testing with `dh-file` container.
|
||||||
# VIRTUAL_HOST is paired with site-specific DH param file.
|
# VIRTUAL_HOST is paired with site-specific DH param file.
|
||||||
# DEFAULT_HOST is required to avoid defaulting to web2,
|
# DEFAULT_HOST is required to avoid defaulting to web2,
|
||||||
# if not specifying FQDN (`-servername`) in openssl queries.
|
# if not specifying FQDN (`-servername`) in openssl queries.
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "85"
|
- "85"
|
||||||
@ -18,11 +21,10 @@ web2:
|
|||||||
WEB_PORTS: "85"
|
WEB_PORTS: "85"
|
||||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||||
|
|
||||||
|
# sut - System Under Test
|
||||||
# sut - System Under Test
|
# `docker.sock` required for functionality
|
||||||
# `docker.sock` required for functionality
|
# `certs` required to enable HTTPS via template
|
||||||
# `certs` required to enable HTTPS via template
|
with_default_group:
|
||||||
with_default_group:
|
|
||||||
container_name: dh-default
|
container_name: dh-default
|
||||||
image: &img-nginxproxy nginxproxy/nginx-proxy:test
|
image: &img-nginxproxy nginxproxy/nginx-proxy:test
|
||||||
environment: &env-common
|
environment: &env-common
|
||||||
@ -31,7 +33,7 @@ with_default_group:
|
|||||||
- &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
|
- &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- &nginx-certs ./certs:/etc/nginx/certs:ro
|
- &nginx-certs ./certs:/etc/nginx/certs:ro
|
||||||
|
|
||||||
with_alternative_group:
|
with_alternative_group:
|
||||||
container_name: dh-env
|
container_name: dh-env
|
||||||
environment:
|
environment:
|
||||||
- DHPARAM_BITS=3072
|
- DHPARAM_BITS=3072
|
||||||
@ -39,7 +41,7 @@ with_alternative_group:
|
|||||||
image: *img-nginxproxy
|
image: *img-nginxproxy
|
||||||
volumes: *vols-common
|
volumes: *vols-common
|
||||||
|
|
||||||
with_invalid_group:
|
with_invalid_group:
|
||||||
container_name: invalid-group-1024
|
container_name: invalid-group-1024
|
||||||
environment:
|
environment:
|
||||||
- DHPARAM_BITS=1024
|
- DHPARAM_BITS=1024
|
||||||
@ -47,7 +49,7 @@ with_invalid_group:
|
|||||||
image: *img-nginxproxy
|
image: *img-nginxproxy
|
||||||
volumes: *vols-common
|
volumes: *vols-common
|
||||||
|
|
||||||
with_custom_file:
|
with_custom_file:
|
||||||
container_name: dh-file
|
container_name: dh-file
|
||||||
image: *img-nginxproxy
|
image: *img-nginxproxy
|
||||||
environment: *env-common
|
environment: *env-common
|
||||||
@ -56,7 +58,7 @@ with_custom_file:
|
|||||||
- *nginx-certs
|
- *nginx-certs
|
||||||
- ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
- ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
||||||
|
|
||||||
with_skip:
|
with_skip:
|
||||||
container_name: dh-skip
|
container_name: dh-skip
|
||||||
environment:
|
environment:
|
||||||
- DHPARAM_SKIP=true
|
- DHPARAM_SKIP=true
|
||||||
@ -64,7 +66,7 @@ with_skip:
|
|||||||
image: *img-nginxproxy
|
image: *img-nginxproxy
|
||||||
volumes: *vols-common
|
volumes: *vols-common
|
||||||
|
|
||||||
with_skip_backward:
|
with_skip_backward:
|
||||||
container_name: dh-skip-backward
|
container_name: dh-skip-backward
|
||||||
environment:
|
environment:
|
||||||
- DHPARAM_GENERATION=false
|
- DHPARAM_GENERATION=false
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "web1.nginx-proxy.tld"
|
VIRTUAL_HOST: "web1.nginx-proxy.tld"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -15,7 +18,7 @@ web2:
|
|||||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||||
HSTS: "off"
|
HSTS: "off"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -24,7 +27,7 @@ web3:
|
|||||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||||
HSTS: "max-age=86400; includeSubDomains; preload"
|
HSTS: "max-age=86400; includeSubDomains; preload"
|
||||||
|
|
||||||
web4:
|
web4:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -34,7 +37,7 @@ web4:
|
|||||||
HSTS: "off"
|
HSTS: "off"
|
||||||
HTTPS_METHOD: "noredirect"
|
HTTPS_METHOD: "noredirect"
|
||||||
|
|
||||||
web5:
|
web5:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -44,7 +47,7 @@ web5:
|
|||||||
labels:
|
labels:
|
||||||
com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
|
com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web2:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -7,8 +10,7 @@ web2:
|
|||||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||||
HTTPS_METHOD: nohttp
|
HTTPS_METHOD: nohttp
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -7,8 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||||
HTTPS_METHOD: nohttps
|
HTTPS_METHOD: nohttps
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web3:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -7,8 +10,7 @@ web3:
|
|||||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||||
HTTPS_METHOD: noredirect
|
HTTPS_METHOD: noredirect
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -8,7 +11,7 @@ web1:
|
|||||||
VIRTUAL_PATH: "/web1/"
|
VIRTUAL_PATH: "/web1/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -18,9 +21,8 @@ web2:
|
|||||||
VIRTUAL_PATH: "/web2/"
|
VIRTUAL_PATH: "/web2/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
- ./certs:/etc/nginx/certs:ro
|
- ./certs:/etc/nginx/certs:ro
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -7,8 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
HTTPS_METHOD: noredirect
|
HTTPS_METHOD: noredirect
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -7,8 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
HTTPS_METHOD: noredirect
|
HTTPS_METHOD: noredirect
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
environment:
|
environment:
|
||||||
TRUST_DOWNSTREAM_PROXY: "false"
|
TRUST_DOWNSTREAM_PROXY: "false"
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
@ -7,8 +10,7 @@ web:
|
|||||||
VIRTUAL_HOST: web.nginx-proxy.tld
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
||||||
HTTPS_METHOD: noredirect
|
HTTPS_METHOD: noredirect
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
environment:
|
environment:
|
||||||
TRUST_DOWNSTREAM_PROXY: "true"
|
TRUST_DOWNSTREAM_PROXY: "true"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
|
||||||
web1:
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -11,6 +14,7 @@ services:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
# The space is intentional (should be trimmed).
|
# The space is intentional (should be trimmed).
|
||||||
VIRTUAL_HOST: " "
|
VIRTUAL_HOST: " "
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -19,6 +23,7 @@ services:
|
|||||||
WEB_PORTS: "82"
|
WEB_PORTS: "82"
|
||||||
# The space is intentional (should be trimmed).
|
# The space is intentional (should be trimmed).
|
||||||
VIRTUAL_HOST: "web2.nginx-proxy.test ,"
|
VIRTUAL_HOST: "web2.nginx-proxy.test ,"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
@ -27,6 +32,7 @@ services:
|
|||||||
WEB_PORTS: "83"
|
WEB_PORTS: "83"
|
||||||
# The space is intentional (should be trimmed).
|
# The space is intentional (should be trimmed).
|
||||||
VIRTUAL_HOST: " ,web3.nginx-proxy.test"
|
VIRTUAL_HOST: " ,web3.nginx-proxy.test"
|
||||||
|
|
||||||
web4:
|
web4:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2'
|
version: "2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net1: {}
|
net1: {}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
foo:
|
services:
|
||||||
|
foo:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "42"
|
- "42"
|
||||||
@ -7,7 +9,7 @@ foo:
|
|||||||
WEB_PORTS: "42"
|
WEB_PORTS: "42"
|
||||||
VIRTUAL_HOST: "foo.nginx-proxy.test"
|
VIRTUAL_HOST: "foo.nginx-proxy.test"
|
||||||
|
|
||||||
web1:
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -17,7 +19,7 @@ web1:
|
|||||||
VIRTUAL_PATH: "/web1/"
|
VIRTUAL_PATH: "/web1/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -27,7 +29,7 @@ web2:
|
|||||||
VIRTUAL_PATH: "/web2/"
|
VIRTUAL_PATH: "/web2/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -36,7 +38,7 @@ web3:
|
|||||||
VIRTUAL_HOST: "nginx-proxy.test"
|
VIRTUAL_HOST: "nginx-proxy.test"
|
||||||
VIRTUAL_PATH: "~ ^/(web3|alt)/"
|
VIRTUAL_PATH: "~ ^/(web3|alt)/"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
environment:
|
environment:
|
||||||
DEFAULT_ROOT: 418
|
DEFAULT_ROOT: 418
|
||||||
@ -45,4 +47,3 @@ sut:
|
|||||||
- ./foo.conf:/etc/nginx/vhost.d/foo.nginx-proxy.test:ro
|
- ./foo.conf:/etc/nginx/vhost.d/foo.nginx-proxy.test:ro
|
||||||
- ./bar.conf:/etc/nginx/vhost.d/nginx-proxy.test_918d687a929083edd0c7224ee2293e0e7c062ab4_location:ro
|
- ./bar.conf:/etc/nginx/vhost.d/nginx-proxy.test_918d687a929083edd0c7224ee2293e0e7c062ab4_location:ro
|
||||||
- ./alternate.conf:/etc/nginx/vhost.d/nginx-proxy.test_7fb22b74bbdf907425dbbad18e4462565cada230_location:ro
|
- ./alternate.conf:/etc/nginx/vhost.d/nginx-proxy.test_7fb22b74bbdf907425dbbad18e4462565cada230_location:ro
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -8,7 +11,7 @@ web1:
|
|||||||
VIRTUAL_PATH: "/web1/"
|
VIRTUAL_PATH: "/web1/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -8,7 +11,7 @@ web1:
|
|||||||
VIRTUAL_PATH: "/web1/"
|
VIRTUAL_PATH: "/web1/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -18,7 +21,7 @@ web2:
|
|||||||
VIRTUAL_PATH: "/web2/"
|
VIRTUAL_PATH: "/web2/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -28,7 +31,7 @@ web3:
|
|||||||
VIRTUAL_PATH: "/web3/"
|
VIRTUAL_PATH: "/web3/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
foo:
|
services:
|
||||||
|
foo:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "42"
|
- "42"
|
||||||
@ -7,7 +9,7 @@ foo:
|
|||||||
WEB_PORTS: "42"
|
WEB_PORTS: "42"
|
||||||
VIRTUAL_HOST: "foo.nginx-proxy.test"
|
VIRTUAL_HOST: "foo.nginx-proxy.test"
|
||||||
|
|
||||||
web1:
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -17,7 +19,7 @@ web1:
|
|||||||
VIRTUAL_PATH: "/web1/"
|
VIRTUAL_PATH: "/web1/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -27,7 +29,7 @@ web2:
|
|||||||
VIRTUAL_PATH: "/web2/"
|
VIRTUAL_PATH: "/web2/"
|
||||||
VIRTUAL_DEST: "/"
|
VIRTUAL_DEST: "/"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -36,7 +38,7 @@ web3:
|
|||||||
VIRTUAL_HOST: "nginx-proxy.test"
|
VIRTUAL_HOST: "nginx-proxy.test"
|
||||||
VIRTUAL_PATH: "/"
|
VIRTUAL_PATH: "/"
|
||||||
|
|
||||||
sut:
|
sut:
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
web1:
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
web1:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "81"
|
- "81"
|
||||||
@ -6,7 +9,7 @@ web1:
|
|||||||
WEB_PORTS: "81"
|
WEB_PORTS: "81"
|
||||||
VIRTUAL_HOST: "*.nginx-proxy.test"
|
VIRTUAL_HOST: "*.nginx-proxy.test"
|
||||||
|
|
||||||
web2:
|
web2:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "82"
|
- "82"
|
||||||
@ -14,7 +17,7 @@ web2:
|
|||||||
WEB_PORTS: "82"
|
WEB_PORTS: "82"
|
||||||
VIRTUAL_HOST: "test.nginx-proxy.*"
|
VIRTUAL_HOST: "test.nginx-proxy.*"
|
||||||
|
|
||||||
web3:
|
web3:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "83"
|
- "83"
|
||||||
@ -22,7 +25,7 @@ web3:
|
|||||||
WEB_PORTS: "83"
|
WEB_PORTS: "83"
|
||||||
VIRTUAL_HOST: ~^web3\..*\.nginx-proxy\.regexp
|
VIRTUAL_HOST: ~^web3\..*\.nginx-proxy\.regexp
|
||||||
|
|
||||||
web4:
|
web4:
|
||||||
image: web
|
image: web
|
||||||
expose:
|
expose:
|
||||||
- "84"
|
- "84"
|
||||||
@ -30,8 +33,7 @@ web4:
|
|||||||
WEB_PORTS: "84"
|
WEB_PORTS: "84"
|
||||||
VIRTUAL_HOST: ~^web4\..*\.nginx-proxy\.regexp$$ # we need to double the `$` because of docker compose variable interpolation
|
VIRTUAL_HOST: ~^web4\..*\.nginx-proxy\.regexp$$ # we need to double the `$` because of docker compose variable interpolation
|
||||||
|
|
||||||
|
sut:
|
||||||
sut:
|
|
||||||
image: nginxproxy/nginx-proxy:test
|
image: nginxproxy/nginx-proxy:test
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
Loading…
x
Reference in New Issue
Block a user