compose.yaml.j2 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. services:
  2. openwebui:
  3. image: ghcr.io/open-webui/open-webui:v0.6.36
  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.docker.network=frontend
  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