traefik-forward-auth/examples/docker-compose.yml

40 lines
901 B
YAML
Raw Normal View History

2018-06-26 12:28:47 +01:00
version: '3'
services:
traefik:
image: traefik
command: -c /traefik.toml --logLevel=DEBUG
ports:
- "8085:80"
- "8086:8080"
networks:
- traefik
volumes:
- ./traefik.toml:/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
whoami1:
image: emilevauge/whoami
networks:
- traefik
labels:
- "traefik.backend=whoami"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:whoami.localhost.com"
traefik-forward-auth:
build: ../
command: ./traefik-forward-auth --rule.1.action=allow --rule.1.rule="Path(`/`)"
2018-06-26 12:28:47 +01:00
environment:
2019-04-24 10:04:24 +01:00
- PROVIDERS_GOOGLE_CLIENT_ID=your-client-id
- PROVIDERS_GOOGLE_CLIENT_SECRET=your-client-secret
- SECRET=something-random
2019-04-24 10:04:24 +01:00
- INSECURE_COOKIE=true
2018-06-26 12:28:47 +01:00
- DOMAIN=yourcompany.com
- LOG_LEVEL=debug
2018-06-26 12:28:47 +01:00
networks:
- traefik
networks:
traefik: