mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 23:05:46 +00:00
tests: factor out base nginx-proxy config
This commit is contained in:
@ -1,4 +1,11 @@
|
||||
services:
|
||||
nginx-proxy:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- ${PYTEST_MODULE_PATH}/default.conf:/etc/nginx/vhost.d/default_location:ro
|
||||
- ${PYTEST_MODULE_PATH}/host.conf:/etc/nginx/vhost.d/bar.nginx-proxy.test_location:ro
|
||||
- ${PYTEST_MODULE_PATH}/path.conf:/etc/nginx/vhost.d/bar.nginx-proxy.test_99f2db0ed8aa95dbb5b87fca79c7eff2ff6bb8bd_location:ro
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
@ -28,11 +35,3 @@ services:
|
||||
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
|
||||
- ./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
|
||||
|
Reference in New Issue
Block a user