mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-04-30 13:17:56 +02:00
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- &certs ./withdefault.certs:/etc/nginx/certs:ro
|
|
environment: &nginxProxyEnv
|
|
ENABLE_HTTP_ON_MISSING_CERT: "false"
|
|
|
|
sutdockergen:
|
|
profiles:
|
|
- separateContainers
|
|
image: nginxproxy/nginx-proxy:test-dockergen
|
|
environment: *nginxProxyEnv
|
|
volumes:
|
|
- &confVolume nginx_conf:/etc/nginx/conf.d
|
|
- *dockerSocket
|
|
- *certs
|
|
|
|
sutnginx:
|
|
profiles:
|
|
- separateContainers
|
|
container_name: nginx-proxy
|
|
image: nginx:alpine
|
|
volumes:
|
|
- *confVolume
|
|
- *certs
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|
|
|
|
nohttp-missing-cert-disabled:
|
|
image: web
|
|
expose:
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "81"
|
|
VIRTUAL_HOST: nohttp-missing-cert-disabled.nginx-proxy.tld
|
|
HTTPS_METHOD: nohttp
|
|
|
|
nohttp-missing-cert-enabled:
|
|
image: web
|
|
expose:
|
|
- "82"
|
|
environment:
|
|
WEB_PORTS: "82"
|
|
VIRTUAL_HOST: nohttp-missing-cert-enabled.nginx-proxy.tld
|
|
HTTPS_METHOD: nohttp
|
|
ENABLE_HTTP_ON_MISSING_CERT: "true"
|
|
|
|
redirect-missing-cert-disabled:
|
|
image: web
|
|
expose:
|
|
- "83"
|
|
environment:
|
|
WEB_PORTS: "83"
|
|
VIRTUAL_HOST: redirect-missing-cert-disabled.nginx-proxy.tld
|
|
|
|
redirect-missing-cert-enabled:
|
|
image: web
|
|
expose:
|
|
- "84"
|
|
environment:
|
|
WEB_PORTS: "84"
|
|
VIRTUAL_HOST: redirect-missing-cert-enabled.nginx-proxy.tld
|
|
ENABLE_HTTP_ON_MISSING_CERT: "true"
|