@@ -0,0 +1,64 @@
1+# This docker-compose file can be used to bring up an example instance of oauth2-proxy
2+# for manual testing and exploration of features.
3+# Alongside OAuth2-Proxy, this file also starts Dex to act as the identity provider,
4+# etcd for storage for Dex and HTTPBin as an example upstream.
6+# This can either be created using docker-compose
7+# docker-compose -f docker-compose.yaml <command>
9+# make <command> (eg. make up, make down)
11+# Access http://localhost:4180 to initiate a login cycle
15+ container_name: oauth2-proxy
16+ image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1
17+ command: --config /oauth2-proxy.cfg
20+ hostname: oauth2-proxy
22+ - "./oauth2-proxy.cfg:/oauth2-proxy.cfg"
23+ restart: unless-stopped
32+ image: quay.io/dexidp/dex:v2.23.0
33+ command: serve /dex.yaml
38+ - "./dex.yaml:/dex.yaml"
39+ restart: unless-stopped
48+ container_name: httpbin
49+ image: kennethreitz/httpbin
54+ image: gcr.io/etcd-development/etcd:v3.4.7
55+ entrypoint: /usr/local/bin/etcd
57+ - --listen-client-urls=http://0.0.0.0:2379
58+ - --advertise-client-urls=http://etcd:2379