feat(elasticsearch): upgrade Elasticsearch version to 9.3.0 in environment and docker-compose files feat(gitlab): update GitLab version to 18.8.3-ce.0 in environment and docker-compose files feat(grafana): bump Grafana version to 12.3.2 in environment and docker-compose files feat(jenkins): upgrade Jenkins version to 2.541-lts-jdk17 in environment and docker-compose files fix(minio): remove unnecessary newline in docker-compose file feat(nginx): downgrade Nginx version to 1.28.2-alpine3.22 in environment and docker-compose files feat(ollama): update Ollama version to 0.14.3 in environment and docker-compose files feat(prometheus): upgrade Prometheus version to 3.5.1 in environment and docker-compose files feat(rabbitmq): update RabbitMQ version to 4.2.3-management-alpine in environment and docker-compose files
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
x-defaults: &defaults
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 100m
|
|
max-file: "3"
|
|
|
|
services:
|
|
ollama:
|
|
<<: *defaults
|
|
image: ${GLOBAL_REGISTRY:-}ollama/ollama:${OLLAMA_VERSION:-0.14.3}
|
|
ports:
|
|
- "${OLLAMA_PORT_OVERRIDE:-11434}:11434"
|
|
volumes:
|
|
- ollama_models:/root/.ollama
|
|
environment:
|
|
- TZ=${TZ:-UTC}
|
|
ipc: host
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"wget",
|
|
"--no-verbose",
|
|
"--tries=1",
|
|
"--spider",
|
|
"http://localhost:11434/",
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: ${OLLAMA_CPU_LIMIT:-8.0}
|
|
memory: ${OLLAMA_MEMORY_LIMIT:-16G}
|
|
reservations:
|
|
cpus: ${OLLAMA_CPU_RESERVATION:-2.0}
|
|
memory: ${OLLAMA_MEMORY_RESERVATION:-4G}
|
|
devices:
|
|
- driver: nvidia
|
|
device_ids: ["0"]
|
|
capabilities: [gpu]
|
|
|
|
volumes:
|
|
ollama_models:
|