mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-08-23 07:51:56 +00:00
test: network segregation w/ internal Docker network
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
private:
|
||||||
|
internal: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
nginx_conf:
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-proxy-nginx:
|
nginx-proxy-nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
@@ -20,7 +29,7 @@ services:
|
|||||||
- ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
- ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
||||||
- nginx_conf:/etc/nginx/conf.d
|
- nginx_conf:/etc/nginx/conf.d
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- private
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: web
|
image: web
|
||||||
@@ -32,10 +41,3 @@ services:
|
|||||||
VIRTUAL_HOST: whoami2.nginx.container.docker
|
VIRTUAL_HOST: whoami2.nginx.container.docker
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
networks:
|
|
||||||
proxy:
|
|
||||||
internal:
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
nginx_conf:
|
|
||||||
|
Reference in New Issue
Block a user