Working with a test app in dev mode

This commit is contained in:
Luke Murphy 2020-04-30 11:55:40 +02:00
parent 6645a01ed1
commit b201c88981
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,12 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`localhost`)"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.routers.traefik.service=api@internal"
whoami:
image: containous/whoami
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"

View File

@ -6,3 +6,4 @@ services:
image: "traefik:v2.2"
ports:
- "80:80"
- "8080:8080"