From 840e90d5a9344aa057eb4b87df4c49c8e70b540a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 5 Mar 2022 10:49:07 +0000 Subject: [PATCH] chore: updates --- docker-compose.yaml | 13 ++++--------- traefik.yml | 6 ++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 traefik.yml diff --git a/docker-compose.yaml b/docker-compose.yaml index e45a502..e581ee0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,20 +1,15 @@ 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" + image: "traefik:v2.5" ports: - "80:80" - "8080:8080" restart: unless-stopped volumes: + - "./traefik.yml:/etc/traefik/traefik.yml" - "/var/run/docker.sock:/var/run/docker.sock:ro" + labels: + - "traefik.enable=false" networks: - traefik_proxy diff --git a/traefik.yml b/traefik.yml new file mode 100644 index 0000000..48ef8eb --- /dev/null +++ b/traefik.yml @@ -0,0 +1,6 @@ +providers: + docker: + defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)" + +api: + insecure: true