From d95f9734ae4a51d49f04c3a5f7aa33494bb48303 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 00:20:12 +0200 Subject: simple docker-compose starting traefik 2.0 --- docker-compose.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1c61dd6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3.3" + +services: + traefik: + image: "traefik:v2.0" + container_name: "traefik" + command: + - "--api.insecure=true" + - "--providers.docker=true" + - "--providers.docker.exposedbydefault=false" + - "--entrypoints.web.address=:80" + - "--metrics.prometheus=true" + ports: + - "80:80" + - "8080:8080" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock:ro" + labels: + - "traefik.enable=true" + - "traefik.http.routers.traefik.entrypoints=web" + - "traefik.http.routers.traefik.rule=Host(`traefik.docker.localhost`)" + - "traefik.http.services.traefik.loadbalancer.server.port=8080" + networks: + - circus + +networks: + circus: + external: + name: circus -- cgit 1.4.1