Advertisement
Plaidstallion

Oauth docker-compose

Jun 11th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. oauth:
  2. container_name: oauth
  3. image: thomseddon/traefik-forward-auth:latest
  4. restart: unless-stopped
  5. networks:
  6. - proxy
  7. security_opt:
  8. - no-new-privileges:true
  9. environment:
  10. - CLIENT_ID=$GOOGLE_CLIENT_ID
  11. - CLIENT_SECRET=$GOOGLE_CLIENT_SECRET
  12. - SECRET=$OAUTH_SECRET
  13. - COOKIE_DOMAIN=$DOMAINNAME
  14. - INSECURE_COOKIE=false
  15. - AUTH_HOST=oauth.$DOMAINNAME
  16. - URL_PATH=/_oauth
  17. - WHITELIST=$CLOUDFLARE_EMAIL
  18. - LOG_LEVEL=warn
  19. - LOG_FORMAT=text
  20. - LIFETIME=2592000 # 30 days
  21. - DEFAULT_ACTION=auth
  22. - DEFAULT_PROVIDER=google
  23. labels:
  24. - "traefik.enable=true"
  25. - "traefik.http.routers.oauth.entrypoints=websecure"
  26. - "traefik.http.routers.oauth.middlewares=chain-oauth@file"
  27. - "traefik.http.services.oauth.loadbalancer.server.port=4181"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement