This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
generated from homecentr/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (61 loc) · 1.91 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
64
version: "3.7"
services:
pomerium:
image: homecentr/pomerium:local
environment:
PUID: 0
PGID: 0
IDP_PROVIDER_URL: "https://login.microsoftonline.com/53174009-29d5-4c20-8bd0-0e2b2b0de6a8/v2.0"
env_file: # Load secrets
- .env
ports:
- 9080:80
- 9443:443
- 9000:9000
networks:
ingress:
aliases:
- fwdauth
volumes:
- ./example/config.yml:/config/config.yml:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.pomerium.tls=true"
- "traefik.http.routers.pomerium.rule=Host(`auth.localhost`)"
- "traefik.http.routers.pomerium.entrypoints=websecure"
- "traefik.http.services.pomerium.loadbalancer.server.port=80"
verify:
image: pomerium/verify:latest
networks:
ingress:
labels:
- "traefik.enable=true"
- "traefik.http.routers.verify.rule=Host(`verify.localhost`)"
- "traefik.http.routers.verify.entrypoints=websecure"
- "traefik.http.routers.verify.middlewares=auth@docker"
- "traefik.http.routers.verify.tls=true"
- "traefik.http.middlewares.auth.forwardauth.authResponseHeadersRegex=.*"
- "traefik.http.middlewares.auth.forwardauth.address=http://fwdauth"
- "traefik.http.middlewares.auth.forwardauth.trustForwardHeader=true"
- "traefik.http.middlewares.auth.forwardauth.tls.insecureSkipVerify=true"
- "traefik.http.services.verify.loadbalancer.server.port=80"
traefik:
image: traefik:v2.5
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
ingress:
ports:
- "80:80"
- "443:443"
- "8080:8080"
networks:
ingress:
driver: bridge