mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-12-18 08:10:23 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
|
services:
|
||
|
|
||
|
ui:
|
||
|
image: ghcr.io/open-webui/open-webui:main
|
||
|
container_name: ollama-ui
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 8080
|
||
|
expose:
|
||
|
- 8080
|
||
|
volumes:
|
||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ollama/open-webui:/app/backend/data
|
||
|
environment:
|
||
|
#- "ENABLE_SIGNUP=false"
|
||
|
- "OLLAMA_BASE_URL=http://ollama:11434"
|
||
|
#networks:
|
||
|
# - proxy
|
||
|
#labels:
|
||
|
# - traefik.enable=true
|
||
|
# - traefik.docker.network=proxy
|
||
|
# - traefik.http.routers.ollama-ui.rule=Host(`ai.example.com`)
|
||
|
# - traefik.http.services.ollama-ui.loadbalancer.server.port=8080
|
||
|
# # Optional part for traefik middlewares
|
||
|
# - traefik.http.routers.ollama-ui.middlewares=local-ipwhitelist@file,authelia@docker
|
||
|
|
||
|
ollama:
|
||
|
image: ollama/ollama:latest
|
||
|
container_name: ollama
|
||
|
restart: always
|
||
|
expose:
|
||
|
- 11434
|
||
|
volumes:
|
||
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ollama/data:/root/.ollama
|
||
|
#networks:
|
||
|
# - proxy
|
||
|
|
||
|
#networks:
|
||
|
# proxy:
|
||
|
# external: true
|