@@ -12,7 +12,6 @@
12# Access http://keycloak.localtest.me:9080 with the same credentials to check out the settings
12# Access http://keycloak.localtest.me:9080 with the same credentials to check out the settings
13version: '3.0'
13version: '3.0'
16 oauth2-proxy:
15 oauth2-proxy:
17 container_name: oauth2-proxy
16 container_name: oauth2-proxy
18 image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
17 image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
@@ -21,6 +20,8 @@ services:
22 - "./oauth2-proxy-keycloak.cfg:/oauth2-proxy.cfg"
21 - "./oauth2-proxy-keycloak.cfg:/oauth2-proxy.cfg"
23 restart: unless-stopped
22 restart: unless-stopped
25 keycloak: {}
26 keycloak: {}
26 httpbin: {}
27 httpbin: {}
@@ -28,15 +29,17 @@ services:
28 depends_on:
29 depends_on:
30 - keycloak
31 - keycloak
35 container_name: httpbin
34 container_name: httpbin
36 image: kennethreitz/httpbin:latest
35 image: kennethreitz/httpbin:latest
37 hostname: httpbin
36 hostname: httpbin
39− httpbin: {}
40+ httpbin:
42+ - httpbin.localtest.me
42 container_name: keycloak
45 container_name: keycloak
@@ -50,19 +53,19 @@ services:
50 '-Dkeycloak.migration.action=import',
53 '-Dkeycloak.migration.action=import',
51 '-Dkeycloak.migration.provider=dir',
54 '-Dkeycloak.migration.provider=dir',
52 '-Dkeycloak.migration.dir=/realm-config',
55 '-Dkeycloak.migration.dir=/realm-config',
53− '-Dkeycloak.migration.strategy=IGNORE_EXISTING',
56+ '-Dkeycloak.migration.strategy=IGNORE_EXISTING'
56 - ./keycloak:/realm-config
59 - ./keycloak:/realm-config
57 environment:
60 environment:
58 KEYCLOAK_USER: admin@example.com
61 KEYCLOAK_USER: admin@example.com
59 KEYCLOAK_PASSWORD: password
62 KEYCLOAK_PASSWORD: password
63 - keycloak.localtest.me
68 - keycloak.localtest.me
68 httpbin: {}
71 httpbin: {}