Skip to content

Commit

Permalink
Fix inconsistencies in readme
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
PascalMinder committed Oct 2, 2022
1 parent cd5f15b commit 3ffcf3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docker/dev-geoblock/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.7"

services:
traefik:
image: traefik:v2.8.1
image: traefik:v2.9

volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand All @@ -11,8 +11,8 @@ services:
- ./../..:/plugins-local/src/github.com/PascalMinder/geoblock/

labels:
traefik.http.routers.dash.rule: Host(`dash.localhost`)
traefik.http.routers.dash.service: api@internal
- "traefik.http.routers.dash.rule=Host(`dash.localhost`)"
- "traefik.http.routers.dash.service=api@internal"

ports:
- "80:80"
Expand All @@ -33,4 +33,4 @@ services:
- traefik.http.routers.whoami.entrypoints=http
- traefik.http.routers.whoami.rule=Host(`whoami.localhost`)
- traefik.http.services.whoami.loadbalancer.server.port=8000
- traefik.http.routers.hello.middlewares=my-plugin@file
- traefik.http.routers.whoami.middlewares=my-plugin@file
11 changes: 3 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ providers:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: "/dynamic-configuration.yml"
filename: "/etc/traefik/dynamic-configuration.yml"
```

In your dynamic configuration add the following:
Expand Down Expand Up @@ -154,13 +154,8 @@ services:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/a/docker/config/traefik/data/traefik.yml:/traefik.yml:ro"
- "/a/docker/config/traefik/data/acme.json:/acme.json"
- "/a/docker/config/traefik/data/config.yml:/config.yml:ro"
- "/a/log/traefik:/etc/traefik"
- "/a/docker/config/traefik/data/dynamic-configuration.yml:/dynamic-configuration.yml"
labels:
- "providers.file.filename=/dynamic-configuration.yml"
- "/a/docker/config/traefik/data/traefik.yml:/etc/traefik/traefik.yml:ro"
- "/a/docker/config/traefik/data/dynamic-configuration.yml:/etc/traefik/dynamic-configuration.yml"
```

This configuration might not work. It's just to give you an idea how to configure it.
Expand Down

0 comments on commit 3ffcf3f

Please sign in to comment.