-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.47 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
version: "3.8"
services:
traefik:
image: "traefik:v2.5"
hostname: traefik
container_name: traefik
restart: always
networks:
- transit_demo
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./acme.json:/acme.json
- ./traefik.yml:/etc/traefik/traefik.yml
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`traefik.mydomain.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls.certresolver=le"
testpage:
image: crccheck/hello-world
container_name: testpage
hostname: testpage
networks:
- transit_demo
labels:
- "traefik.enable=false" #redundant
gatekeeper_testpage:
image: quay.io/gogatekeeper/gatekeeper:1.3.7
hostname: gatekeeper_testpage
restart: always
container_name: gatekeeper_testpage
networks:
- transit_demo
volumes:
- ./keycloak-gatekeeper.conf:/etc/keycloak-gatekeeper.conf
entrypoint:
- /opt/gatekeeper/gatekeeper
- --config=/etc/keycloak-gatekeeper.conf
labels:
- "traefik.enable=true"
- "traefik.http.routers.auth.rule=Host(`testpage.mydomain.com`)"
- "traefik.http.routers.auth.tls.certresolver=le"
- "traefik.http.services.auth.loadbalancer.server.port=3030"
networks:
transit_demo: