mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-04-30 21:27:58 +02:00
66 lines
1.2 KiB
YAML
66 lines
1.2 KiB
YAML
volumes:
|
|
nginx_conf:
|
|
|
|
|
|
services:
|
|
default-80:
|
|
image: web
|
|
expose:
|
|
- "80"
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "80 81"
|
|
VIRTUAL_HOST: "default-80.nginx-proxy.tld"
|
|
|
|
default-exposed:
|
|
image: web
|
|
expose:
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "81"
|
|
VIRTUAL_HOST: "default-exposed.nginx-proxy.tld"
|
|
|
|
virtual-port:
|
|
image: web
|
|
expose:
|
|
- "80"
|
|
- "90"
|
|
environment:
|
|
WEB_PORTS: "80 90"
|
|
VIRTUAL_HOST: "virtual-port.nginx-proxy.tld"
|
|
VIRTUAL_PORT: "90"
|
|
|
|
wrong-virtual-port:
|
|
image: web
|
|
expose:
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "81"
|
|
VIRTUAL_HOST: "wrong-virtual-port.nginx-proxy.tld"
|
|
VIRTUAL_PORT: "91"
|
|
|
|
sut:
|
|
profiles:
|
|
- singleContainer
|
|
image: nginxproxy/nginx-proxy:test
|
|
volumes:
|
|
- &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"
|