From 4d52f98de53d1e50904d7ab362322f48fb4125c0 Mon Sep 17 00:00:00 2001 From: thest1tch Date: Wed, 21 Jun 2023 23:57:46 +0500 Subject: [PATCH] fix --- docs/docker-compose/traefik.md | 52 ++++++++++++++++---------------- docs/images/docker/traefik2.png | Bin 2 files changed, 26 insertions(+), 26 deletions(-) mode change 100644 => 100755 docs/images/docker/traefik2.png diff --git a/docs/docker-compose/traefik.md b/docs/docker-compose/traefik.md index b214039..86cc651 100755 --- a/docs/docker-compose/traefik.md +++ b/docs/docker-compose/traefik.md @@ -269,32 +269,32 @@ admin:$apr1$vDSqkf.v$GTJOtsd9CBiAFFnHTI2Ds1 - `traefik.http.routers.traefik.middlewares=traefik-auth` — указываем что роутер `traefik` использует только что-то созданный middleware. ??? note "Весь docker-compose.yml" - ```yaml - version: '3.9' - services: - traefik: - image: traefik:v2.10 - container_name: traefik - restart: unless-stopped - security_opt: - - no-new-privileges:true - ports: - - 80:80 - - 443:443 - volumes: - - /etc/localtime:/etc/localtime:ro - - /var/run/docker.sock:/var/run/docker.sock:ro - - ./data/traefik.yml:/traefik.yml:ro - - ./data/acme.json:/acme.json - labels: - - "traefik.enable=true" - - "traefik.http.routers.traefik.entrypoints=https" - - "traefik.http.routers.traefik.rule=Host(`traefik.example.com`)" - - "traefik.http.routers.traefik.tls=true" - - "traefik.http.routers.traefik.tls.certresolver=letsEncrypt" - - "traefik.http.routers.traefik.service=api@internal" - - "traefik.http.services.traefik-traefik.loadbalancer.server.port=888" - ``` + ```yaml + version: '3.9' + services: + traefik: + image: traefik:v2.10 + container_name: traefik + restart: unless-stopped + security_opt: + - no-new-privileges:true + ports: + - 80:80 + - 443:443 + volumes: + - /etc/localtime:/etc/localtime:ro + - /var/run/docker.sock:/var/run/docker.sock:ro + - ./data/traefik.yml:/traefik.yml:ro + - ./data/acme.json:/acme.json + labels: + - "traefik.enable=true" + - "traefik.http.routers.traefik.entrypoints=https" + - "traefik.http.routers.traefik.rule=Host(`traefik.example.com`)" + - "traefik.http.routers.traefik.tls=true" + - "traefik.http.routers.traefik.tls.certresolver=letsEncrypt" + - "traefik.http.routers.traefik.service=api@internal" + - "traefik.http.services.traefik-traefik.loadbalancer.server.port=888" + ``` Теперь при попытке доступа к дашборду у нас спросят логин и пароль. diff --git a/docs/images/docker/traefik2.png b/docs/images/docker/traefik2.png old mode 100644 new mode 100755