Created
October 8, 2024 17:05
-
-
Save gamersalpha/0d04ebd8f3f5e68413428cb08bef841d to your computer and use it in GitHub Desktop.
Docker - Portainer - Stack - ollamaWeb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
ollama: | |
image: ollama/ollama:latest | |
container_name: ollama | |
volumes: | |
- /volume1/docker/ollama-web/ollama:/root/.ollama | |
#pull_policy: always | |
#tty: true | |
#ports: | |
# -11434:11434 | |
restart: unless-stopped | |
open-webui: | |
image: ghcr.io/open-webui/open-webui:main | |
container_name: open-webui | |
# build: | |
# context: . | |
# args: | |
# OLLAMA_BASE_URL: '/ollama' | |
# dockerfile: Dockerfile | |
volumes: | |
- /volume1/docker/ollama-web/web-openui/data:/app/backend/data | |
depends_on: | |
- ollama | |
ports: | |
- ${OPEN_WEBUI_PORT-3001}:8080 | |
environment: | |
- 'OLLAMA_BASE_URL=http://ollama:11434' | |
- 'WEBUI_SECRET_KEY=' | |
extra_hosts: | |
- host.docker.internal:host-gateway | |
restart: unless-stopped | |
volumes: | |
ollama: {} | |
open-webui: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment