2019-08-06 15:46:04 +00:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
traefik:
|
2022-12-05 15:58:04 +00:00
|
|
|
image: "traefik:v3.0"
|
2019-08-06 15:46:04 +00:00
|
|
|
container_name: "traefik"
|
|
|
|
command:
|
|
|
|
#- "--log.level=DEBUG"
|
2019-09-12 14:22:03 +00:00
|
|
|
- "--api.insecure=true"
|
2019-08-06 15:46:04 +00:00
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.web.address=:80"
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
|
|
|
|
whoami:
|
2020-09-16 13:46:04 +00:00
|
|
|
image: "traefik/whoami"
|
2019-08-06 15:46:04 +00:00
|
|
|
container_name: "simple-service"
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
|
|
|
|
- "traefik.http.routers.whoami.entrypoints=web"
|