mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 09:48:14 +00:00
39 lines
902 B
YAML
39 lines
902 B
YAML
|
web1:
|
||
|
image: web
|
||
|
expose:
|
||
|
- "81"
|
||
|
environment:
|
||
|
WEB_PORTS: "81"
|
||
|
VIRTUAL_HOST: "foo.nginx-proxy.test"
|
||
|
VIRTUAL_PATH: "/web1/"
|
||
|
VIRTUAL_DEST: "/"
|
||
|
|
||
|
web2:
|
||
|
image: web
|
||
|
expose:
|
||
|
- "82"
|
||
|
environment:
|
||
|
WEB_PORTS: "82"
|
||
|
VIRTUAL_HOST: "bar.nginx-proxy.test"
|
||
|
VIRTUAL_PATH: "/web2/"
|
||
|
VIRTUAL_DEST: "/"
|
||
|
|
||
|
web3:
|
||
|
image: web
|
||
|
expose:
|
||
|
- "83"
|
||
|
environment:
|
||
|
WEB_PORTS: "83"
|
||
|
VIRTUAL_HOST: "bar.nginx-proxy.test"
|
||
|
VIRTUAL_PATH: "/web3/"
|
||
|
VIRTUAL_DEST: "/"
|
||
|
|
||
|
sut:
|
||
|
image: nginxproxy/nginx-proxy:test
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||
|
- ../lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
||
|
- ./default.conf:/etc/nginx/vhost.d/default_location:ro
|
||
|
- ./host.conf:/etc/nginx/vhost.d/bar.nginx-proxy.test_location:ro
|
||
|
- ./path.conf:/etc/nginx/vhost.d/bar.nginx-proxy.test_99f2db0ed8aa95dbb5b87fca79c7eff2ff6bb8bd_location:ro
|