docs: improve examples
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
[](https://hub.docker.com/r/traefik/whoami/)
|
[](https://hub.docker.com/r/traefik/whoami/)
|
||||||
[](https://github.com/traefik/whoami/actions)
|
[](https://github.com/traefik/whoami/actions)
|
||||||
|
|
||||||
Tiny Go webserver that prints os information and HTTP request to output
|
Tiny Go webserver that prints OS information and HTTP request to output
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ $ curl -v http://localhost:80/health
|
|||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
docker run -d -P -v ./certs:/certs --name iamfoo traefik/whoami --cert /certs/cert.cer --key /certs/key.key
|
docker run -d -P -v ./certs:/certs --name iamfoo traefik/whoami --cert /certs/example.cert --key /certs/example.key
|
||||||
```
|
```
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -75,8 +75,8 @@ version: '3.9'
|
|||||||
services:
|
services:
|
||||||
whoami:
|
whoami:
|
||||||
image: traefik/whoami
|
image: traefik/whoami
|
||||||
container_name: iamfoo
|
|
||||||
command:
|
command:
|
||||||
# It tells whoami to start listening on 2001 instead of 80
|
# It tells whoami to start listening on 2001 instead of 80
|
||||||
- --port 2001
|
- --port 2001
|
||||||
|
- --name iamfoo
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user