mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-09-01 18:50:50 +02:00
30 lines
610 B
YAML
30 lines
610 B
YAML
services:
|
|
nginx-proxy:
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ${PYTEST_MODULE_PATH}/my_custom_proxy_settings_f00.conf:/etc/nginx/proxy.conf:ro
|
|
|
|
web1:
|
|
image: web
|
|
expose:
|
|
- "81"
|
|
environment:
|
|
WEB_PORTS: "81"
|
|
VIRTUAL_HOST: web1.nginx-proxy.example
|
|
|
|
web2:
|
|
image: web
|
|
expose:
|
|
- "82"
|
|
environment:
|
|
WEB_PORTS: "82"
|
|
VIRTUAL_HOST: web2.nginx-proxy.example
|
|
|
|
wildcard:
|
|
image: web
|
|
expose:
|
|
- "83"
|
|
environment:
|
|
WEB_PORTS: "83"
|
|
VIRTUAL_HOST: "*.nginx-proxy.example" # wildcard for all subdomains
|