mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
38 lines
840 B
YAML
38 lines
840 B
YAML
version: '3.8'
|
|
services:
|
|
|
|
ollama:
|
|
volumes:
|
|
- ollama:/root/.ollama
|
|
networks:
|
|
- dokploy-network
|
|
pull_policy: always
|
|
tty: true
|
|
restart: unless-stopped
|
|
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
|
|
|
|
open-webui:
|
|
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
|
|
networks:
|
|
- dokploy-network
|
|
volumes:
|
|
- open-webui:/app/backend/data
|
|
depends_on:
|
|
- ollama
|
|
environment:
|
|
- 'OLLAMA_BASE_URL=http://ollama:11434'
|
|
- 'WEBUI_SECRET_KEY='
|
|
restart: unless-stopped
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${HASH}.rule=Host(`${OPEN_WEBUI_HOST}`)"
|
|
- "traefik.http.services.${HASH}.loadbalancer.server.port=${OPEN_WEBUI_PORT}"
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|
|
|
|
volumes:
|
|
ollama: {}
|
|
open-webui: {}
|