mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-08-23 16:01:57 +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:
|
||||
nginx-proxy-nginx:
|
||||
image: nginx
|
||||
@@ -20,7 +29,7 @@ services:
|
||||
- ../../nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
||||
- nginx_conf:/etc/nginx/conf.d
|
||||
networks:
|
||||
- internal
|
||||
- private
|
||||
|
||||
web:
|
||||
image: web
|
||||
@@ -32,10 +41,3 @@ services:
|
||||
VIRTUAL_HOST: whoami2.nginx.container.docker
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
internal:
|
||||
|
||||
volumes:
|
||||
nginx_conf:
|
||||
|
Reference in New Issue
Block a user