compose.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. services:
  3. openwebui:
  4. image: ghcr.io/open-webui/open-webui:v0.5.14
  5. environment:
  6. - OLLAMA_BASE_URL=http://10.20.0.20:11434
  7. # -- Authentik SSO
  8. # Uncomment the following lines to enable SSO with Authentik OIDC / OAuth2
  9. # - ENABLE_OAUTH_SIGNUP=true
  10. # - OAUTH_MERGE_ACCOUNTS_BY_EMAIL=false
  11. # - OAUTH_PROVIDER_NAME=authentik
  12. # - OPENID_PROVIDER_URL=https://authentik.example.com/application/o/openwebui-slug/.well-known/openid-configuration
  13. # - OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
  14. # - OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET}
  15. # - OAUTH_SCOPES=openid email profile
  16. # - OPENID_REDIRECT_URI=https://openwebui.example.com/oauth/oidc/callback
  17. volumes:
  18. - data:/app/backend/data:rw
  19. networks:
  20. - frontend
  21. labels:
  22. - traefik.enable=true
  23. - traefik.http.routers.openwebui.rule=Host(`openwebui.example.com`)
  24. - traefik.http.routers.openwebui.entrypoints=websecure
  25. - traefik.http.routers.openwebui.tls=true
  26. - traefik.http.routers.openwebui.tls.certresolver=cloudflare
  27. - traefik.http.routers.openwebui.service=openwebui
  28. - traefik.http.services.openwebui.loadBalancer.server.port=8080
  29. restart: unless-stopped
  30. volumes:
  31. data:
  32. driver: local
  33. networks:
  34. frontend:
  35. external: true