1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-08-23 16:01:57 +00:00

feat: allow nginx / docker-gen network segregation

* fix merge conflicts
This commit is contained in:
Knapoc
2023-07-24 11:36:17 +02:00
committed by Juergen Stauber
parent 45342410bf
commit 9711ade7a6
2 changed files with 41 additions and 17 deletions

View File

@@ -1157,6 +1157,12 @@ Finally, start your containers with `VIRTUAL_HOST` environment variables.
docker run -e VIRTUAL_HOST=foo.bar.com ...
```
To allow for network segregation of the nginx and docker-gen containers, the label `com.github.nginx-proxy.nginx-proxy.nginx` must be applied to the nginx container, otherwise it is assumed that nginx and docker-gen share the same network:
```console
docker run -d -p 80:80 --name nginx -l "com.github.nginx-proxy.nginx-proxy.nginx" -v /tmp/nginx:/etc/nginx/conf.d -t nginx
```
⬆️ [back to table of contents](#table-of-contents)
## Docker Compose