2024-09-25 12:35:39 +04:00
|
|
|
services:
|
2024-09-25 15:19:28 +04:00
|
|
|
gitea: # Имя сервиса
|
|
|
|
image: gitea/gitea:latest # Имя образа
|
|
|
|
container_name: gitea # Имя контейнера, может быть произовольным
|
2024-09-25 12:35:39 +04:00
|
|
|
ports:
|
|
|
|
- "3000:3000" # Проброс порта Gitea на хост
|
2024-09-25 15:19:28 +04:00
|
|
|
volumes: # хранилище
|
2024-09-25 12:35:39 +04:00
|
|
|
- data:/data
|
2024-09-25 15:19:28 +04:00
|
|
|
environment: # переменные окружения
|
2024-09-25 12:35:39 +04:00
|
|
|
USER_UID: 1000
|
|
|
|
USER_GID: 1000
|
|
|
|
|
|
|
|
ollama:
|
2024-09-25 15:19:28 +04:00
|
|
|
image: ollama/ollama:latest
|
2024-09-25 12:35:39 +04:00
|
|
|
container_name: ollama
|
|
|
|
restart: always
|
|
|
|
ports:
|
2024-09-25 15:19:28 +04:00
|
|
|
- 7869:11434
|
2024-09-25 12:35:39 +04:00
|
|
|
pull_policy: always
|
|
|
|
tty: true
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
- ./ollama/ollama:/root/.ollama # Директория для данных Ollama
|
|
|
|
environment:
|
|
|
|
- OLLAMA_KEEP_ALIVE=24h
|
2024-09-25 15:19:28 +04:00
|
|
|
- OLLAMA_HOST=0.0.0.0 # Указываем хост для API Ollama
|
2024-09-25 12:35:39 +04:00
|
|
|
networks:
|
|
|
|
- ollama-docker
|
|
|
|
command: ["serve"] # Запускаем Ollama в режиме сервера
|
|
|
|
|
|
|
|
ollama-webui:
|
|
|
|
image: ghcr.io/open-webui/open-webui:main # Образ Open Web UI
|
|
|
|
container_name: ollama-webui
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./ollama/ollama-webui:/app/backend/data
|
|
|
|
ports:
|
|
|
|
- 8080:8080 # Порт для веб-интерфейса
|
|
|
|
environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models
|
2024-09-25 15:19:28 +04:00
|
|
|
- OLLAMA_BASE_URLS=http://host.docker.internal:7869
|
2024-09-25 12:35:39 +04:00
|
|
|
- ENV=dev
|
|
|
|
- WEBUI_AUTH=False
|
|
|
|
- WEBUI_NAME=Viltskaa AI
|
|
|
|
- WEBUI_URL=http://localhost:8080
|
|
|
|
- WEBUI_SECRET_KEY=t0p-s3cr3t
|
|
|
|
depends_on:
|
|
|
|
- ollama
|
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
networks:
|
|
|
|
- ollama-docker
|
|
|
|
|
|
|
|
networks:
|
|
|
|
ollama-docker:
|
|
|
|
external: false
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
ollama:
|
|
|
|
driver: local
|
|
|
|
data:
|
|
|
|
driver: local
|