version: '3' services: proxy: build: proxy ports: - 8000:4180 environment: OAUTH2_PROXY_HTTP_ADDRESS: 0.0.0.0:4180 OAUTH2_PROXY_PROVIDER: github OAUTH2_PROXY_CLIENT_ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXx OAUTH2_PROXY_CLIENT_SECRET: XXXXXXXXXXXXXXXXXXXXXx OAUTH2_PROXY_EMAIL_DOMAINS: '*' OAUTH2_PROXY_UPSTREAMS: http://web/ OAUTH2_PROXY_COOKIE_SECRET: XXXXXXXXXXXXXXXXXXx OAUTH2_PROXY_SESSION_STORE_TYPE: redis OAUTH2_PROXY_REDIS_CONNECTION_URL: redis://redis/ OAUTH2_PROXY_COOKIE_SECURE: 'false' OAUTH2_PROXY_REDIRECT_URL: http://localhost:8000/oauth2/callback web: build: web redis: image: redis volumes: - redis:/data volumes: redis:
FROM alpine RUN wget -q https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.2.1/oauth2-proxy-v7.2.1.linux-amd64.tar.gz \ && tar xzf oauth2-proxy-v7.2.1.linux-amd64.tar.gz \ && mv oauth2-proxy-v7.2.1.linux-amd64/oauth2-proxy /bin/ CMD ["/bin/oauth2-proxy"]
FROM php:apache RUN echo "<?php\nphpinfo();" > /var/www/html/index.php