From 7b3576bcbd2f998054271fac2f98600cb55f066d Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 27 May 2020 11:42:54 +0100 Subject: [PATCH] initial commit - traeffik --- traefik/docker-compose.yaml | 15 +++++++++++++++ traefik/traefik.yml | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 traefik/docker-compose.yaml create mode 100644 traefik/traefik.yml diff --git a/traefik/docker-compose.yaml b/traefik/docker-compose.yaml new file mode 100644 index 0000000..d838c5d --- /dev/null +++ b/traefik/docker-compose.yaml @@ -0,0 +1,15 @@ +version: "3.3" + +services: + traefik: + image: "traefik:v2.0.0" + restart: unless-stopped + command: + - --entrypoints.web.address=:80 + - --providers.docker=true + ports: + - "192.168.0.97:80:80" + - "192.168.0.97:8080:8080" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock:ro" + - "./traefik.yml:/etc/traefik/traefik.yml" diff --git a/traefik/traefik.yml b/traefik/traefik.yml new file mode 100644 index 0000000..c06635c --- /dev/null +++ b/traefik/traefik.yml @@ -0,0 +1,8 @@ +# Docker configuration backend +providers: + docker: + defaultRule: "Host(`{{ trimPrefix `/` .Name }}.m.home`)" + +# API and dashboard configuration +api: + insecure: true