AVA-docker/docker-compose.yml

64 lines
2.7 KiB
YAML
Raw Normal View History

2024-02-06 08:42:50 +00:00
version: '3'
services:
traefik:
2024-02-06 10:01:37 +00:00
image: traefik
2024-02-06 08:42:50 +00:00
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
2024-02-06 10:01:37 +00:00
- \var\run\docker.sock:/var/run/docker.sock
- .\traefik.yml:/etc/traefik/traefik.yml
- .\authorized_users:/etc/traefik/authorized_users
- .\acme.json:/acme.json
2024-02-06 08:42:50 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard-http.entrypoints=http"
- "traefik.http.routers.dashboard-http.rule=Host(`server.ava.kb28.ch`,`server.ava.jcloud.ik-server.com`)"
- "traefik.http.routers.dashboard-http.middlewares=dashboard-redirect"
- "traefik.http.middlewares.dashboard-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.dashboard-https.entrypoints=https"
- "traefik.http.routers.dashboard-https.rule=(Host(`server.ava.kb28.ch`,`server.ava.jcloud.ik-server.com`)) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.dashboard-https.tls.certResolver=letsencrypt"
- "traefik.http.routers.dashboard-https.service=api@internal"
- "traefik.http.routers.dashboard-https.middlewares=dashboard-auth"
- "traefik.http.middlewares.dashboard-auth.basicauth.usersfile=/etc/traefik/authorized_users"
ollama:
image: ollama/ollama
restart: unless-stopped
container_name: ollama
ports:
- '11434:11434'
volumes:
2024-02-06 10:01:37 +00:00
- './ollama:/root/.ollama'
2024-02-06 08:42:50 +00:00
ollama-webui:
image: 'ghcr.io/ollama-webui/ollama-webui:main'
restart: unless-stopped
container_name: ollama-webui
volumes:
2024-02-06 10:01:37 +00:00
- './ollama-webui:/app/backend/data'
2024-02-06 08:42:50 +00:00
depends_on:
- ollama
ports:
- 80:8080
environment:
2024-02-06 10:01:37 +00:00
- './ollama/api=http://ollama:11434/api'
2024-02-06 08:42:50 +00:00
extra_hosts:
- host.docker.internal:host-gateway
labels:
- "traefik.enable=true"
- "traefik.http.routers.ollama-webui-http.entrypoints=http"
- "traefik.http.routers.ollama-webui-http.rule=Host(`ollama.ava.kb28.ch`,`ollama.ava.jcloud.ik-server.com`)"
- "traefik.http.routers.ollama-webui-http.middlewares=ollama-webui-redirect"
- "traefik.http.middlewares.ollama-webui-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.ollama-webui-https.entrypoints=https"
- "traefik.http.routers.ollama-webui-https.rule=Host(`ollama.ava.kb28.ch`,`ollama.ava.jcloud.ik-server.com`)"
- "traefik.http.routers.ollama-webui-https.tls.certResolver=letsencrypt"
- "traefik.http.routers.ollama-webui-https.service=ollama-webui"
- "traefik.http.routers.ollama-webui-https.middlewares=ollama-webui-auth"
- "traefik.http.middlewares.ollama-webui-auth.basicauth.usersfile=/etc/traefik/authorized_users"