# 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 Dex to act as the identity provider, # HTTPBin as an example upstream. # # This can either be created using docker-compose # docker-compose -f docker-compose.yaml # Or: # make (eg. make up, make down) # # Access http://oauth2-proxy.localtest.me:4180 to initiate a login cycle version: "3.0" services: oauth2-proxy: container_name: oauth2-proxy image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.5 command: --config /oauth2-proxy.cfg hostname: oauth2-proxy volumes: - "./oauth2-proxy.cfg:/oauth2-proxy.cfg" restart: unless-stopped ports: - 4180:4180/tcp networks: dex: {} httpbin: {} depends_on: - dex - httpbin dex: container_name: dex image: ghcr.io/dexidp/dex:v2.45.1 command: dex serve /dex.yaml hostname: dex volumes: - "./dex.yaml:/dex.yaml" restart: unless-stopped ports: - 5556:5556/tcp networks: dex: aliases: - dex.localtest.me httpbin: container_name: httpbin image: kennethreitz/httpbin ports: [] networks: httpbin: {} networks: dex: {} httpbin: {}