Compare commits
No commits in common. "main" and "1.7.0" have entirely different histories.
3 changed files with 4 additions and 19 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/nginxproxy/docker-gen:0.14.5 AS docker-gen
|
||||
FROM docker.io/nginxproxy/docker-gen:0.14.4 AS docker-gen
|
||||
|
||||
FROM docker.io/nginxproxy/forego:0.18.2 AS forego
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/nginxproxy/docker-gen:0.14.5-debian AS docker-gen
|
||||
FROM docker.io/nginxproxy/docker-gen:0.14.4-debian AS docker-gen
|
||||
|
||||
FROM docker.io/nginxproxy/forego:0.18.2-debian AS forego
|
||||
|
||||
|
|
19
README.md
19
README.md
|
@ -20,17 +20,7 @@ docker run --detach \
|
|||
--volume /var/run/docker.sock:/tmp/docker.sock:ro \
|
||||
nginxproxy/nginx-proxy:1.6
|
||||
```
|
||||
docker-compose
|
||||
```docker-compose
|
||||
services:
|
||||
nginx-proxy:
|
||||
image: nginxproxy/nginx-proxy
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/tmp/docker.sock"
|
||||
```
|
||||
|
||||
Then start any containers (here an nginx container) you want proxied with an env var `VIRTUAL_HOST=subdomain.yourdomain.com`
|
||||
|
||||
```console
|
||||
|
@ -39,12 +29,7 @@ docker run --detach \
|
|||
--env VIRTUAL_HOST=foo.bar.com \
|
||||
nginx
|
||||
```
|
||||
docker-compose
|
||||
```docker-compose
|
||||
environment:
|
||||
- VIRTUAL_HOST=git.patachina.casacam.net
|
||||
- VIRTUAL_PORT=3000
|
||||
```
|
||||
|
||||
Provided your DNS is setup to resolve `foo.bar.com` to the host running nginx-proxy, a request to `http://foo.bar.com` will then be routed to a container with the `VIRTUAL_HOST` env var set to `foo.bar.com` (in this case, the **your-proxied-app** container).
|
||||
|
||||
The containers being proxied must :
|
||||
|
|
Loading…
Reference in a new issue