mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
Merge branch 'main' of github.com:yusing/go-proxy
This commit is contained in:
commit
01380489bd
1 changed files with 7 additions and 5 deletions
12
README.md
12
README.md
|
@ -37,9 +37,11 @@ I have tried different reverse proxy services, i.e. [nginx proxy manager](https:
|
|||
|
||||
`docker network inspect $(docker network ls | awk '$3 == "bridge" { print $1}') | jq -r '.[] | .Name + " " + .IPAM.Config[0].Subnet' -`
|
||||
|
||||
6. start your docker app, and visit <container_name>.yourdomain.com
|
||||
|
||||
## Configuration
|
||||
|
||||
With a proper container name, no label needs to be added.
|
||||
With container name, no label needs to be added.
|
||||
|
||||
However, there are some labels you can manipulate with:
|
||||
|
||||
|
@ -58,9 +60,9 @@ However, there are some labels you can manipulate with:
|
|||
version: '3'
|
||||
services:
|
||||
whoami:
|
||||
image: traefik/whoami
|
||||
image: traefik/whoami # port 80 is exposed
|
||||
container_name: whoami
|
||||
# visit https://whoami.yourdomain.com to access
|
||||
# (default) https://whoami.yourdomain.com
|
||||
|
||||
# enable both subdomain and path matching:
|
||||
whoami:
|
||||
|
@ -69,8 +71,8 @@ whoami:
|
|||
labels:
|
||||
- proxy.aliases=whoami,apps
|
||||
- proxy.apps.path=/whoami
|
||||
# 1. visit https://whoami.yourdomain.com to access
|
||||
# 2. visit https://apps.yourdomain.com/whoami to access
|
||||
# 1. visit https://whoami.yourdomain.com
|
||||
# 2. visit https://apps.yourdomain.com/whoami
|
||||
```
|
||||
|
||||
For multiple port container (i.e. minio)
|
||||
|
|
Loading…
Add table
Reference in a new issue