-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathdocker-compose.yml
115 lines (106 loc) · 4.05 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3'
# networks:
# default:
# external: true
# name: traefik-network
services:
traefik.test:
build:
context: ./src/
dockerfile: web.traefik.dockerfile
hostname: traefik
container_name: example-oidc-traefik
ports:
- '80:80'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# https://docs.traefik.io/routing/providers/docker/
# https://docs.traefik.io/reference/dynamic-configuration/docker/
labels:
- traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`traefik.test`)
- traefik.http.routers.traefik.entrypoints=http
- traefik.http.routers.traefik.service=api@internal
oidc-server.test:
build:
context: ./src/
dockerfile: web.oidc.server.ids4.dockerfile
hostname: oidc-server
container_name: example-oidc-server
labels:
- traefik.enable=true
- traefik.http.routers.oidc-server.rule=Host(`oidc-server.test`)
- traefik.http.routers.oidc-server.entrypoints=http
- traefik.http.services.oidc-server.loadbalancer.server.port=80
oidc-client-hybrid.test:
build:
context: ./src/
dockerfile: web.oidc.client.hybrid.dockerfile
hostname: oidc-client-hybrid
container_name: example-oidc-client-hybrid
labels:
- traefik.enable=true
- traefik.http.routers.oidc-client-hybrid.rule=Host(`oidc-client-hybrid.test`)
- traefik.http.routers.oidc-client-hybrid.entrypoints=http
- traefik.http.services.oidc-client-hybrid.loadbalancer.server.port=80
oidc-client-js.test:
build:
context: ./src/
dockerfile: web.oidc.client.js.dockerfile
hostname: oidc-client-js
container_name: example-oidc-client-js
labels:
- traefik.enable=true
- traefik.http.routers.oidc-client-js.rule=Host(`oidc-client-js.test`)
- traefik.http.routers.oidc-client-js.entrypoints=http
- traefik.http.services.oidc-client-js.loadbalancer.server.port=80
oauth2-client-aspnetcore.test:
build:
context: ./src/
dockerfile: web.oauth2.client.aspnetcore.dockerfile
hostname: oauth2-client-aspnetcore
container_name: example-oidc-oauth2-client-aspnetcore
labels:
- traefik.enable=true
- traefik.http.routers.oauth2-client-aspnetcore.rule=Host(`oauth2-client-aspnetcore.test`)
- traefik.http.routers.oauth2-client-aspnetcore.entrypoints=http
- traefik.http.services.oauth2-client-aspnetcore.loadbalancer.server.port=80
oauth2-resources-aspnetcore.test:
build:
context: ./src/
dockerfile: web.oauth2.resources.aspnetcore.dockerfile
hostname: oauth2-resources-aspnetcore
container_name: example-oidc-oauth2-resources-aspnetcore
depends_on:
- oidc-server.test
labels:
- traefik.enable=true
- traefik.http.routers.oauth2-resources-aspnetcore.rule=Host(`oauth2-resources-aspnetcore.test`)
- traefik.http.routers.oauth2-resources-aspnetcore.entrypoints=http
- traefik.http.services.oauth2-resources-aspnetcore.loadbalancer.server.port=80
oauth2-resources-nodejs.test:
build:
context: ./src/
dockerfile: web.oauth2.resources.nodejs.dockerfile
hostname: oauth2-resources-nodejs
container_name: example-oidc-oauth2-resources-nodejs
depends_on:
- oidc-server.test
labels:
- traefik.enable=true
- traefik.http.routers.oauth2-resources-nodejs.rule=Host(`oauth2-resources-nodejs.test`)
- traefik.http.routers.oauth2-resources-nodejs.entrypoints=http
- traefik.http.services.oauth2-resources-nodejs.loadbalancer.server.port=80
oauth2-resources-java.test:
build:
context: ./src/
dockerfile: web.oauth2.resources.java.dockerfile
hostname: oauth2-resources-java
container_name: example-oidc-oauth2-resources-java
depends_on:
- oidc-server.test
labels:
- traefik.enable=true
- traefik.http.routers.oauth2-resources-java.rule=Host(`oauth2-resources-java.test`)
- traefik.http.routers.oauth2-resources-java.entrypoints=http
- traefik.http.services.oauth2-resources-java.loadbalancer.server.port=80