mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 14:25:46 +00:00
ci: ensure all compose files are valid compose v2 + formatting
This commit is contained in:
@ -1,73 +1,75 @@
|
||||
web5:
|
||||
image: web
|
||||
expose:
|
||||
- "85"
|
||||
environment:
|
||||
WEB_PORTS: "85"
|
||||
VIRTUAL_HOST: "web5.nginx-proxy.tld"
|
||||
version: "2"
|
||||
|
||||
# Intended for testing with `dh-file` container.
|
||||
# VIRTUAL_HOST is paired with site-specific DH param file.
|
||||
# DEFAULT_HOST is required to avoid defaulting to web2,
|
||||
# if not specifying FQDN (`-servername`) in openssl queries.
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "85"
|
||||
environment:
|
||||
WEB_PORTS: "85"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
services:
|
||||
web5:
|
||||
image: web
|
||||
expose:
|
||||
- "85"
|
||||
environment:
|
||||
WEB_PORTS: "85"
|
||||
VIRTUAL_HOST: "web5.nginx-proxy.tld"
|
||||
|
||||
# Intended for testing with `dh-file` container.
|
||||
# VIRTUAL_HOST is paired with site-specific DH param file.
|
||||
# DEFAULT_HOST is required to avoid defaulting to web2,
|
||||
# if not specifying FQDN (`-servername`) in openssl queries.
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "85"
|
||||
environment:
|
||||
WEB_PORTS: "85"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
|
||||
# sut - System Under Test
|
||||
# `docker.sock` required for functionality
|
||||
# `certs` required to enable HTTPS via template
|
||||
with_default_group:
|
||||
container_name: dh-default
|
||||
image: &img-nginxproxy nginxproxy/nginx-proxy:test
|
||||
environment: &env-common
|
||||
- &default-host DEFAULT_HOST=web5.nginx-proxy.tld
|
||||
volumes: &vols-common
|
||||
- &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- &nginx-certs ./certs:/etc/nginx/certs:ro
|
||||
# sut - System Under Test
|
||||
# `docker.sock` required for functionality
|
||||
# `certs` required to enable HTTPS via template
|
||||
with_default_group:
|
||||
container_name: dh-default
|
||||
image: &img-nginxproxy nginxproxy/nginx-proxy:test
|
||||
environment: &env-common
|
||||
- &default-host DEFAULT_HOST=web5.nginx-proxy.tld
|
||||
volumes: &vols-common
|
||||
- &docker-sock /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- &nginx-certs ./certs:/etc/nginx/certs:ro
|
||||
|
||||
with_alternative_group:
|
||||
container_name: dh-env
|
||||
environment:
|
||||
- DHPARAM_BITS=3072
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
with_alternative_group:
|
||||
container_name: dh-env
|
||||
environment:
|
||||
- DHPARAM_BITS=3072
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
|
||||
with_invalid_group:
|
||||
container_name: invalid-group-1024
|
||||
environment:
|
||||
- DHPARAM_BITS=1024
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
with_invalid_group:
|
||||
container_name: invalid-group-1024
|
||||
environment:
|
||||
- DHPARAM_BITS=1024
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
|
||||
with_custom_file:
|
||||
container_name: dh-file
|
||||
image: *img-nginxproxy
|
||||
environment: *env-common
|
||||
volumes:
|
||||
- *docker-sock
|
||||
- *nginx-certs
|
||||
- ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
||||
with_custom_file:
|
||||
container_name: dh-file
|
||||
image: *img-nginxproxy
|
||||
environment: *env-common
|
||||
volumes:
|
||||
- *docker-sock
|
||||
- *nginx-certs
|
||||
- ../../app/dhparam/ffdhe3072.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
||||
|
||||
with_skip:
|
||||
container_name: dh-skip
|
||||
environment:
|
||||
- DHPARAM_SKIP=true
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
with_skip:
|
||||
container_name: dh-skip
|
||||
environment:
|
||||
- DHPARAM_SKIP=true
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
|
||||
with_skip_backward:
|
||||
container_name: dh-skip-backward
|
||||
environment:
|
||||
- DHPARAM_GENERATION=false
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
with_skip_backward:
|
||||
container_name: dh-skip-backward
|
||||
environment:
|
||||
- DHPARAM_GENERATION=false
|
||||
- *default-host
|
||||
image: *img-nginxproxy
|
||||
volumes: *vols-common
|
||||
|
@ -1,51 +1,54 @@
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web1.nginx-proxy.tld"
|
||||
version: "2"
|
||||
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
HSTS: "off"
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web1.nginx-proxy.tld"
|
||||
|
||||
web3:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||
HSTS: "max-age=86400; includeSubDomains; preload"
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
HSTS: "off"
|
||||
|
||||
web4:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web4.nginx-proxy.tld"
|
||||
HSTS: "off"
|
||||
HTTPS_METHOD: "noredirect"
|
||||
web3:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||
HSTS: "max-age=86400; includeSubDomains; preload"
|
||||
|
||||
web5:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: http3-vhost-enabled.nginx-proxy.tld
|
||||
labels:
|
||||
com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
|
||||
web4:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "web4.nginx-proxy.tld"
|
||||
HSTS: "off"
|
||||
HTTPS_METHOD: "noredirect"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
web5:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: http3-vhost-enabled.nginx-proxy.tld
|
||||
labels:
|
||||
com.github.nginx-proxy.nginx-proxy.http3.enable: "true"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
|
@ -1,16 +1,19 @@
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||
version: "2"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
environment:
|
||||
HTTP_PORT: 8080
|
||||
HTTPS_PORT: 8443
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
environment:
|
||||
HTTP_PORT: 8080
|
||||
HTTPS_PORT: 8443
|
||||
|
@ -1,15 +1,17 @@
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "82"
|
||||
environment:
|
||||
WEB_PORTS: "82"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
HTTPS_METHOD: nohttp
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "82"
|
||||
environment:
|
||||
WEB_PORTS: "82"
|
||||
VIRTUAL_HOST: "web2.nginx-proxy.tld"
|
||||
HTTPS_METHOD: nohttp
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
|
@ -1,14 +1,16 @@
|
||||
web:
|
||||
image: web
|
||||
expose:
|
||||
- "83"
|
||||
environment:
|
||||
WEB_PORTS: "83"
|
||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||
HTTPS_METHOD: nohttps
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: web
|
||||
expose:
|
||||
- "83"
|
||||
environment:
|
||||
WEB_PORTS: "83"
|
||||
VIRTUAL_HOST: "web.nginx-proxy.tld"
|
||||
HTTPS_METHOD: nohttps
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
|
@ -1,15 +1,17 @@
|
||||
web3:
|
||||
image: web
|
||||
expose:
|
||||
- "83"
|
||||
environment:
|
||||
WEB_PORTS: "83"
|
||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||
HTTPS_METHOD: noredirect
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
web3:
|
||||
image: web
|
||||
expose:
|
||||
- "83"
|
||||
environment:
|
||||
WEB_PORTS: "83"
|
||||
VIRTUAL_HOST: "web3.nginx-proxy.tld"
|
||||
HTTPS_METHOD: noredirect
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
|
@ -1,26 +1,28 @@
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "www.nginx-proxy.tld"
|
||||
VIRTUAL_PATH: "/web1/"
|
||||
VIRTUAL_DEST: "/"
|
||||
version: "2"
|
||||
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "82"
|
||||
environment:
|
||||
WEB_PORTS: "82"
|
||||
VIRTUAL_HOST: "www.nginx-proxy.tld"
|
||||
VIRTUAL_PATH: "/web2/"
|
||||
VIRTUAL_DEST: "/"
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "www.nginx-proxy.tld"
|
||||
VIRTUAL_PATH: "/web1/"
|
||||
VIRTUAL_DEST: "/"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
web2:
|
||||
image: web
|
||||
expose:
|
||||
- "82"
|
||||
environment:
|
||||
WEB_PORTS: "82"
|
||||
VIRTUAL_HOST: "www.nginx-proxy.tld"
|
||||
VIRTUAL_PATH: "/web2/"
|
||||
VIRTUAL_DEST: "/"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
|
@ -1,13 +1,16 @@
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||
version: "2"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
services:
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
- "81"
|
||||
environment:
|
||||
WEB_PORTS: "81"
|
||||
VIRTUAL_HOST: "*.nginx-proxy.tld"
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ./certs:/etc/nginx/certs:ro
|
||||
|
Reference in New Issue
Block a user