mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 23:05:46 +00:00
test: add tests for host mode fix
This commit is contained in:
28
test/test_host-network-mode/test_host-network-mode.yml
Normal file
28
test/test_host-network-mode/test_host-network-mode.yml
Normal file
@ -0,0 +1,28 @@
|
||||
version: "2"
|
||||
|
||||
networks:
|
||||
net1:
|
||||
|
||||
services:
|
||||
bridge-network:
|
||||
image: web
|
||||
environment:
|
||||
WEB_PORTS: "80"
|
||||
VIRTUAL_HOST: "bridge-network.nginx-proxy.tld"
|
||||
networks:
|
||||
- net1
|
||||
|
||||
host-network:
|
||||
image: web
|
||||
environment:
|
||||
WEB_PORTS: "8080"
|
||||
VIRTUAL_HOST: "host-network.nginx-proxy.tld"
|
||||
VIRTUAL_PORT: "8080"
|
||||
network_mode: host
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
networks:
|
||||
- net1
|
Reference in New Issue
Block a user