Fix typo and tweak formatting in quickstart
This commit is contained in:
parent
b7e15e0a2c
commit
1d770e5636
2 changed files with 12 additions and 12 deletions
|
@ -77,13 +77,13 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: traefik #The official Traefik docker image
|
image: traefik # The official Traefik docker image
|
||||||
command: --api --docker #Enables the web UI and tells Træfik to listen to docker
|
command: --api --docker # Enables the web UI and tells Træfik to listen to docker
|
||||||
ports:
|
ports:
|
||||||
- "80:80" #The HTTP port
|
- "80:80" # The HTTP port
|
||||||
- "8080:8080" #The Web UI (enabled by --api)
|
- "8080:8080" # The Web UI (enabled by --api)
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events
|
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
|
||||||
```
|
```
|
||||||
|
|
||||||
**That's it. Now you can launch Træfik!**
|
**That's it. Now you can launch Træfik!**
|
||||||
|
@ -105,7 +105,7 @@ Edit your `docker-compose.yml` file and add the following at the end of your fil
|
||||||
```yaml
|
```yaml
|
||||||
# ...
|
# ...
|
||||||
whoami:
|
whoami:
|
||||||
image: emilevauge/whoami #A container that exposes an API to show it's IP address
|
image: emilevauge/whoami # A container that exposes an API to show its IP address
|
||||||
labels:
|
labels:
|
||||||
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
||||||
```
|
```
|
||||||
|
|
|
@ -13,11 +13,11 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: traefik #The official Traefik docker image
|
image: traefik # The official Traefik docker image
|
||||||
command: --api --docker #Enables the web UI and tells Træfik to listen to docker
|
command: --api --docker # Enables the web UI and tells Træfik to listen to docker
|
||||||
ports:
|
ports:
|
||||||
- "80:80" #The HTTP port
|
- "80:80" # The HTTP port
|
||||||
- "8080:8080" #The Web UI (enabled by --api)
|
- "8080:8080" # The Web UI (enabled by --api)
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events
|
- /var/run/docker.sock:/var/run/docker.sock #So that Traefik can listen to the Docker events
|
||||||
```
|
```
|
||||||
|
@ -41,7 +41,7 @@ Edit your `docker-compose.yml` file and add the following at the end of your fil
|
||||||
```yaml
|
```yaml
|
||||||
# ...
|
# ...
|
||||||
whoami:
|
whoami:
|
||||||
image: emilevauge/whoami #A container that exposes an API to show it's IP address
|
image: emilevauge/whoami # A container that exposes an API to show its IP address
|
||||||
labels:
|
labels:
|
||||||
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue