commit 7b3576bcbd2f998054271fac2f98600cb55f066d Author: ray Date: Wed May 27 11:42:54 2020 +0100 initial commit - traeffik 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