/traefik-oauth2-proxy

Configure traefik and oauth2_proxy without configuration files

Primary LanguageShell

Use docker-compose to deploy Prometheus, Grafana, Portainer behind Traefik cloud native edge router, all protected by oauth2_proxy

Usage

git clone https://github.com/tlex/traefik-oauth2-proxy.git demo
cd demo
cp .env.example .env

Now you need to edit .env and set the correct values for all the variables there. Once this is done, you can proceed:

for i in grafana-db portainer-db prometheus traefik; do mkdir -p "./folders/${i}"; done
sudo chown 99:99 ./folders/prometheus
sudo docker-compose up --remove-orphans

Details

For deatils, see the blog entry: alex.thom.ae/2020/01/12/deploy-traefik-prometheus-grafana-oauth2_proxy-docker-compose/