apps/ollama-cpu/docker-compose.yml hinzugefügt

This commit is contained in:
tipi 2025-08-11 10:29:47 +00:00
parent 04833f9feb
commit d4a9422d14

View File

@ -0,0 +1,33 @@
version: '3.7'
services:
ollama-cpu:
image: ollama/ollama:v0.11.4
restart: unless-stopped
container_name: ollama-cpu
ports:
- ${APP_PORT}:11434
networks:
- tipi_main_network
volumes:
- ${APP_DATA_DIR}/data/.ollama:/root/.ollama
labels:
traefik.enable: true
traefik.http.middlewares.ollama-cpu-web-redirect.redirectscheme.scheme: https
traefik.http.services.ollama-cpu.loadbalancer.server.port: 11434
traefik.http.routers.ollama-cpu-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.ollama-cpu-insecure.entrypoints: web
traefik.http.routers.ollama-cpu-insecure.service: ollama-cpu
traefik.http.routers.ollama-cpu-insecure.middlewares: ollama-cpu-web-redirect
traefik.http.routers.ollama-cpu.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.ollama-cpu.entrypoints: websecure
traefik.http.routers.ollama-cpu.service: ollama-cpu
traefik.http.routers.ollama-cpu.tls.certresolver: myresolver
traefik.http.routers.ollama-cpu-local-insecure.rule: Host(`ollama-cpu.${LOCAL_DOMAIN}`)
traefik.http.routers.ollama-cpu-local-insecure.entrypoints: web
traefik.http.routers.ollama-cpu-local-insecure.service: ollama-cpu
traefik.http.routers.ollama-cpu-local-insecure.middlewares: ollama-cpu-web-redirect
traefik.http.routers.ollama-cpu-local.rule: Host(`ollama-cpu.${LOCAL_DOMAIN}`)
traefik.http.routers.ollama-cpu-local.entrypoints: websecure
traefik.http.routers.ollama-cpu-local.service: ollama-cpu
traefik.http.routers.ollama-cpu-local.tls: true
runtipi.managed: true