forked from bitly/oauth2_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into helm-example
# Conflicts: # CHANGELOG.md
- Loading branch information
Showing
18 changed files
with
2,407 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# This docker-compose file can be used to bring up an example instance of oauth2-proxy | ||
# for manual testing and exploration of features. | ||
# Alongside OAuth2-Proxy, this file also starts Keycloak to act as the identity provider, | ||
# HTTPBin as an example upstream. | ||
# | ||
# This can either be created using docker-compose | ||
# docker-compose -f docker-compose-keycloak.yaml <command> | ||
# Or: | ||
# make keycloak-<command> (eg. make keycloak-up, make keycloak-down) | ||
# | ||
# Access http://oauth2-proxy.localtest.me:4180 to initiate a login cycle using [email protected], password=password | ||
# Access http://keycloak.localtest.me:9080 with the same credentials to check out the settings | ||
version: '3.0' | ||
services: | ||
|
||
oauth2-proxy: | ||
container_name: oauth2-proxy | ||
image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1 | ||
command: --config /oauth2-proxy.cfg | ||
hostname: oauth2-proxy | ||
volumes: | ||
- "./oauth2-proxy-keycloak.cfg:/oauth2-proxy.cfg" | ||
restart: unless-stopped | ||
networks: | ||
keycloak: {} | ||
httpbin: {} | ||
oauth2-proxy: {} | ||
depends_on: | ||
- httpbin | ||
- keycloak | ||
ports: | ||
- 4180:4180/tcp | ||
|
||
httpbin: | ||
container_name: httpbin | ||
image: kennethreitz/httpbin:latest | ||
hostname: httpbin | ||
networks: | ||
httpbin: {} | ||
|
||
keycloak: | ||
container_name: keycloak | ||
image: jboss/keycloak:10.0.0 | ||
hostname: keycloak | ||
command: | ||
[ | ||
'-b', | ||
'0.0.0.0', | ||
'-Djboss.socket.binding.port-offset=1000', | ||
'-Dkeycloak.migration.action=import', | ||
'-Dkeycloak.migration.provider=dir', | ||
'-Dkeycloak.migration.dir=/realm-config', | ||
'-Dkeycloak.migration.strategy=IGNORE_EXISTING', | ||
] | ||
volumes: | ||
- ./keycloak:/realm-config | ||
environment: | ||
KEYCLOAK_USER: [email protected] | ||
KEYCLOAK_PASSWORD: password | ||
networks: | ||
keycloak: | ||
aliases: | ||
- keycloak.localtest.me | ||
ports: | ||
- 9080:9080/tcp | ||
|
||
networks: | ||
httpbin: {} | ||
keycloak: {} | ||
oauth2-proxy: {} |
Oops, something went wrong.