git.iko.soy/typeable/oauth2-proxy
on master help sign in
Update docker-compose-nginx.yaml

working nginx example. docker-compose-nginx was missing some configuration to run out of the box.

commite91f09875a61b8d35f426fb9903cc29ed2fc6720 authorEdvard Gjessing Bakken <edvard.bakken@vippsmobilepay.com> dateTue 16 Apr 2024, 10:27 (3 years ago) parentd436e19
1 file changed+51
contrib/local-environment/docker-compose-nginx.yaml+51
contrib/local-environment/docker-compose-nginx.yaml+51
@@ -25,11 +25,22 @@ services:
2525 image: quay.io/oauth2-proxy/oauth2-proxy:v7.6.0
2626 ports: []
2727 hostname: oauth2-proxy
28+ container_name: oauth2-proxy
29+ command: --config /oauth2-proxy.cfg
30+ image: quay.io/oauth2-proxy/oauth2-proxy:v7.6.0
2831 volumes:
2932 - "./oauth2-proxy-nginx.cfg:/oauth2-proxy.cfg"
3033 networks:
3134 oauth2-proxy: {}
35+ dex: {}
36+ etcd: {}
37+ httpbin: {}
38+ depends_on:
39+ - dex
40+ - httpbin
3241 nginx:
42+ depends_on:
43+ - oauth2-proxy
3344 container_name: nginx
3445 image: nginx:1.27
3546 restart: unless-stopped
@@ -40,6 +51,46 @@ services:
4051 - "./nginx.conf:/etc/nginx/conf.d/default.conf"
4152 networks:
4253 oauth2-proxy: {}
54+ dex: {}
55+ etcd: {}
4356 httpbin: {}
57+ dex:
58+ container_name: dex
59+ image: ghcr.io/dexidp/dex:v2.39.0
60+ command: dex serve /dex.yaml
61+ hostname: dex
62+ volumes:
63+ - "./dex.yaml:/dex.yaml"
64+ restart: unless-stopped
65+ ports:
66+ - 4190:4190/tcp
67+ networks:
68+ dex:
69+ aliases:
70+ - dex.localtest.me
71+ etcd: {}
72+ depends_on:
73+ - etcd
74+ httpbin:
75+ container_name: httpbin
76+ image: kennethreitz/httpbin
77+ ports:
78+ - 8080:80/tcp
79+ networks:
80+ httpbin:
81+ aliases:
82+ - httpbin.localtest.me
83+ etcd:
84+ container_name: etcd
85+ image: gcr.io/etcd-development/etcd:v3.5.13
86+ entrypoint: /usr/local/bin/etcd
87+ command:
88+ - --listen-client-urls=http://0.0.0.0:2379
89+ - --advertise-client-urls=http://etcd:2379
90+ networks:
91+ etcd: {}
4492networks:
93+ dex: {}
94+ etcd: {}
95+ httpbin: {}
4596 oauth2-proxy: {}