compose.yaml 1.3 KB

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