This commit is contained in:
Oliver Davies 2021-02-03 16:10:13 +00:00
commit d66d1cb6da

32
docker-compose.yaml Normal file
View file

@ -0,0 +1,32 @@
version: "3.3"
networks:
traefik_proxy:
external: true
services:
reverse-proxy:
image: "traefik:v2.4"
command:
- "--api.debug=true"
- "--api.insecure=true"
- "--entrypoints.traefik_proxy.address=:80"
- "--log.level=DEBUG"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=traefik_proxy"
- "--providers.docker=true"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- traefik_proxy
whoami:
image: "traefik/whoami"
container_name: "simple-service"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
- "traefik.http.routers.whoami.entrypoints=web"