2017-01-27 02:01:57 +01:00
|
|
|
services:
|
|
|
|
nginx-proxy:
|
2021-04-01 16:06:09 +02:00
|
|
|
image: nginxproxy/nginx-proxy:test
|
2017-01-27 02:01:57 +01:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
2024-11-01 21:54:59 +01:00
|
|
|
- ./my_custom_proxy_settings_f00.conf:/etc/nginx/vhost.d/web1.nginx-proxy.example:ro
|
2024-11-01 21:37:29 +01:00
|
|
|
- ./my_custom_proxy_settings_bar.conf:/etc/nginx/vhost.d/561032515ede3ab3a015edfb244608b72409c430:ro
|
2017-01-27 02:01:57 +01:00
|
|
|
|
|
|
|
web1:
|
2017-03-07 14:04:44 -05:00
|
|
|
image: web
|
2017-01-27 02:01:57 +01:00
|
|
|
expose:
|
|
|
|
- "81"
|
|
|
|
environment:
|
|
|
|
WEB_PORTS: 81
|
2023-05-22 12:14:28 +02:00
|
|
|
VIRTUAL_HOST: web1.nginx-proxy.example
|
2017-01-27 02:01:57 +01:00
|
|
|
|
|
|
|
web2:
|
2017-03-07 14:04:44 -05:00
|
|
|
image: web
|
2017-01-27 02:01:57 +01:00
|
|
|
expose:
|
|
|
|
- "82"
|
|
|
|
environment:
|
|
|
|
WEB_PORTS: 82
|
2023-05-22 12:14:28 +02:00
|
|
|
VIRTUAL_HOST: web2.nginx-proxy.example
|
2024-11-01 21:37:29 +01:00
|
|
|
|
|
|
|
regex:
|
|
|
|
image: web
|
|
|
|
expose:
|
|
|
|
- "83"
|
|
|
|
environment:
|
|
|
|
WEB_PORTS: 83
|
|
|
|
VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$
|