Fix style in examples/quickstart
This commit is contained in:
parent
4d79c2a6d2
commit
8c733abef3
1 changed files with 9 additions and 9 deletions
|
@ -1,18 +1,18 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
#The reverse proxy service (Træfik)
|
# The reverse proxy service (Træfik)
|
||||||
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
|
||||||
|
|
||||||
#A container that exposes a simple API
|
# A container that exposes a simple API
|
||||||
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 it's IP address
|
||||||
labels:
|
labels:
|
||||||
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
- "traefik.frontend.rule=Host:whoami.docker.localhost"
|
Loading…
Reference in a new issue