This setup should work right out of the box.
If Ollama is being hosted on a separate machine:
- Comment out the whole
ollamaservice part - Comment out the
extra_hosts:section of the open-webui service
| # username for login is 'admin' | |
| SUPERUSER_EMAIL=admin@netbox.local | |
| SUPERUSER_PASSWORD= | |
| DB_PASSWORD= | |
| REDIS_PASSWORD= |
| import subprocess | |
| # what to put if version cannot be determined | |
| _undefined_version = "undefined version" | |
| # first, try getting version from git | |
| _git_version = None | |
| try: | |
| _git_version = subprocess.check_output(["git", "describe", "--dirty"], stderr=subprocess.PIPE).strip().decode("utf-8") | |
| except (FileNotFoundError, subprocess.CalledProcessError) as e: |