-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
63 lines (59 loc) · 1.9 KB
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
traefik:
image: "traefik:latest"
container_name: "traefik"
networks:
- proxy
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080" # Traefik web UI
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
traefik-guardian:
build:
context: .
environment:
- DEBUG=true
- AUTH_HOST=auth.test.localhost
- PASSWORDS=plaintext:test1234|test1337
# - LOGIN_PAGE_FOOTER_TEXT=This is a custom footer
# - PASSWORDS=bcrypt:$$2a$$12$$/n4Bb2g0YsW6rL9d0f2VquHkhl.iSaV88FOGiu5FEYXCEPW2Sl9yy|$$2a$$12$$UoUJQcz5W5wm9A98N4GC7.X.7x398zMl6Y/T5Vjycc.gel/xBzSGm
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.auth.rule=Host(`auth.test.localhost`) || Path(`/traefik-guardian-session-share`)
- traefik.http.routers.auth.entrypoints=web
- traefik.http.middlewares.traefik-guardian.forwardauth.address=http://traefik-guardian/auth
whoami:
image: containous/whoami
container_name: "whoami"
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.whoami.rule=Host(`whoami.test.localhost`)
- traefik.http.routers.whoami.entrypoints=web
- traefik.http.routers.whoami.middlewares=traefik-guardian
whoami2:
image: containous/whoami
container_name: "whoami2"
networks:
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.whoami2.rule=Host(`whoami.test2.localhost`)
- traefik.http.routers.whoami2.entrypoints=web
- traefik.http.routers.whoami2.middlewares=traefik-guardian
networks:
proxy: