compose.yaml.j2 1.3 KB

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