-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '2'
services:
traefik:
image: traefik:2.9
container_name: traefik
ports:
- "8080:8080"
- "9090:9090"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- .:/plugins-local/src/github.com/jdel/staticresponse:ro
command:
- --log
- --log.level=ERROR
- --api=true
- --api.insecure=true
- --api.dashboard=true
- --providers.docker=true
- --entrypoints.web
- --entrypoints.web.address=:9090
- --experimental.localPlugins.staticresponse.moduleName=github.com/jdel/staticresponse
# - --experimental.plugins.staticresponse.moduleName=github.com/jdel/staticresponse
# - --experimental.plugins.staticresponse.version=v0.0.1
- --providers.file.filename=/plugins-local/src/github.com/jdel/staticresponse/example-dynamic-config.yml
labels:
- traefik.http.middlewares.418teapot.plugin.staticresponse
- traefik.http.middlewares.418teapot.plugin.staticresponse.StatusCode=418
- traefik.http.middlewares.418teapot.plugin.staticresponse.Body=I'm a teapot
- traefik.http.middlewares.418teapot.plugin.staticresponse.Headers.X-Secret-Header=donttell,anyone,please
- traefik.http.middlewares.200ok.plugin.staticresponse
- traefik.http.middlewares.200ok.plugin.staticresponse.StatusCode=200
- traefik.http.middlewares.200ok.plugin.staticresponse.Headers.X-First-Header=first
- traefik.http.middlewares.200ok.plugin.staticresponse.Headers.X-Secont-Header=second
- traefik.http.routers.ok-rule.rule=PathPrefix(`/ok`)
- traefik.http.routers.ok-rule.service=noop@internal
- traefik.http.routers.ok-rule.entrypoints=web
- traefik.http.routers.ok-rule.middlewares=200ok
- traefik.http.routers.tea-rule.rule=PathPrefix(`/tea`)
- traefik.http.routers.tea-rule.service=noop@internal
- traefik.http.routers.tea-rule.entrypoints=web
- traefik.http.routers.tea-rule.middlewares=418teapot