-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
43 lines (40 loc) · 1.68 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
43 lines (40 loc) · 1.68 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
43
services:
traefik:
image: "traefik:v3.3.6"
container_name: "traefik"
restart: unless-stopped
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--experimental.localplugins.password-protect.modulename=github.com/LaurenceJJones/password-protect-traefik-plugin"
volumes:
- /run/user/1000/podman/podman.sock:/var/run/docker.sock:ro
- './templates/dist/login.html:/login.html:ro'
- ./:/plugins-local/src/github.com/LaurenceJJones/password-protect-traefik-plugin
ports:
- 8000:80
whoami-foo:
image: traefik/whoami
container_name: "simple-service-foo"
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.router-foo.rule=PathPrefix(`/foo`)"
- "traefik.http.routers.router-foo.entrypoints=web"
- "traefik.http.services.service-foo.loadbalancer.server.port=80"
- "traefik.http.routers.router-foo.middlewares=password-protect@docker"
- "traefik.http.middlewares.password-protect.plugin.password-protect.password=password"
whoami2:
image: traefik/whoami
container_name: "simple-service-bar"
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.router-bar.rule=PathPrefix(`/bar`)"
- "traefik.http.routers.router-bar.entrypoints=web"
- "traefik.http.services.service-bar.loadbalancer.server.port=80"
- "traefik.http.routers.router-bar.middlewares=password-protect2@docker"
- "traefik.http.middlewares.password-protect2.plugin.password-protect.password=password123"