mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-04-30 21:27:58 +02:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
web:
|
|
image: web
|
|
expose:
|
|
- "80"
|
|
environment:
|
|
WEB_PORTS: 80
|
|
VIRTUAL_HOST: web.nginx-proxy.tld
|
|
HTTPS_METHOD: noredirect
|
|
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
- &dockerSocket /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- &certificate ./certs/web.nginx-proxy.tld.crt:/etc/nginx/certs/web.nginx-proxy.tld.crt:ro
|
|
- &privateKey ./certs/web.nginx-proxy.tld.key:/etc/nginx/certs/web.nginx-proxy.tld.key:ro
|
|
environment: &nginxProxyEnv
|
|
TRUST_DOWNSTREAM_PROXY: "true"
|
|
|
|
sut-dockergen:
|
|
profiles:
|
|
- separateContainers
|
|
image: nginxproxy/nginx-proxy:test-dockergen
|
|
volumes:
|
|
- &confVolume nginx_conf:/etc/nginx/conf.d
|
|
- *dockerSocket
|
|
- *certificate
|
|
- *privateKey
|
|
environment: *nginxProxyEnv
|
|
|
|
sut-nginx:
|
|
profiles:
|
|
- separateContainers
|
|
container_name: nginx-proxy
|
|
image: nginx:alpine
|
|
volumes:
|
|
- *confVolume
|
|
- *certificate
|
|
- *privateKey
|
|
labels:
|
|
- "com.github.nginx-proxy.nginx-proxy.nginx"
|