Skip to content

Instantly share code, notes, and snippets.

@alexohneander
Created August 12, 2020 13:09
Show Gist options
  • Save alexohneander/800e93ba36732a8c842afbcc8767134f to your computer and use it in GitHub Desktop.
Save alexohneander/800e93ba36732a8c842afbcc8767134f to your computer and use it in GitHub Desktop.
version: "3.3"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web-secure.address=:443"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "containous/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.local`)"
- "traefik.http.routers.whoami.entrypoints=web"
nginx:
image: "nginx"
container_name: "nginx-example"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.rule=Host(`nginx.local`)"
- "traefik.http.routers.nginx.entrypoints=web"
dotnet:
image: "alexohneander/hello-k8s-cs"
container_name: "hello-k8s-cs"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dotnetexample.rule=Host(`dotnet.local`)"
- "traefik.http.routers.dotnetexample.entrypoints=web"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment