1
0
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:
Nicolas Duchon
2025-05-11 12:40:11 +02:00
parent 40744f6f41
commit bfabd46054

View File

@@ -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: