mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 14:25:46 +00:00
tests: factor out base nginx-proxy config
This commit is contained in:
@ -11,6 +11,14 @@ networks:
|
||||
- subnet: fd00:cafe:face:feed::/64
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
networks:
|
||||
ipv4net:
|
||||
ipv4_address: 172.16.10.3
|
||||
dualstacknet:
|
||||
ipv4_address: 172.16.20.3
|
||||
ipv6_address: fd00:cafe:face:feed::3
|
||||
|
||||
ipv4only:
|
||||
image: web
|
||||
expose:
|
||||
@ -31,13 +39,3 @@ services:
|
||||
ipv4_address: 172.16.20.2
|
||||
ipv6_address: fd00:cafe:face:feed::2
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
networks:
|
||||
ipv4net:
|
||||
ipv4_address: 172.16.10.3
|
||||
dualstacknet:
|
||||
ipv4_address: 172.16.20.3
|
||||
ipv6_address: fd00:cafe:face:feed::3
|
||||
|
@ -11,6 +11,16 @@ networks:
|
||||
- subnet: fd00:cafe:face:feed::/64
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
environment:
|
||||
PREFER_IPV6_NETWORK: "true"
|
||||
networks:
|
||||
ipv4net:
|
||||
ipv4_address: 172.16.10.3
|
||||
dualstacknet:
|
||||
ipv4_address: 172.16.20.3
|
||||
ipv6_address: fd00:cafe:face:feed::3
|
||||
|
||||
ipv4only:
|
||||
image: web
|
||||
expose:
|
||||
@ -31,15 +41,3 @@ services:
|
||||
ipv4_address: 172.16.20.2
|
||||
ipv6_address: fd00:cafe:face:feed::2
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
environment:
|
||||
PREFER_IPV6_NETWORK: "true"
|
||||
networks:
|
||||
ipv4net:
|
||||
ipv4_address: 172.16.10.3
|
||||
dualstacknet:
|
||||
ipv4_address: 172.16.20.3
|
||||
ipv6_address: fd00:cafe:face:feed::3
|
||||
|
@ -6,6 +6,12 @@ networks:
|
||||
- subnet: fd00:1::/80
|
||||
|
||||
services:
|
||||
nginx-proxy:
|
||||
environment:
|
||||
ENABLE_IPV6: "true"
|
||||
networks:
|
||||
- net1
|
||||
|
||||
web1:
|
||||
image: web
|
||||
expose:
|
||||
@ -26,11 +32,3 @@ services:
|
||||
networks:
|
||||
- net1
|
||||
|
||||
sut:
|
||||
image: nginxproxy/nginx-proxy:test
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
environment:
|
||||
ENABLE_IPV6: "true"
|
||||
networks:
|
||||
- net1
|
||||
|
Reference in New Issue
Block a user