update volume for server

This commit is contained in:
Rémi Heredero 2024-02-06 11:01:37 +01:00
parent bc6e7b6271
commit 2764084797

View File

@ -3,18 +3,16 @@ version: '3'
services:
traefik:
image: traefik:v2.9
image: traefik
restart: unless-stopped
ports:
# Read this on how to open ports
# https://github.com/chaifeng/ufw-docker
- "80:80"
- "443:443"
volumes:
- C:\tmp\var\run\docker.sock:/var/run/docker.sock
- C:\traefik.yml:/etc/traefik/traefik.yml
- C:\authorized_users:/etc/traefik/authorized_users
- C:\acme.json:/acme.json
- \var\run\docker.sock:/var/run/docker.sock
- .\traefik.yml:/etc/traefik/traefik.yml
- .\authorized_users:/etc/traefik/authorized_users
- .\acme.json:/acme.json
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard-http.entrypoints=http"
@ -28,12 +26,6 @@ services:
- "traefik.http.routers.dashboard-https.middlewares=dashboard-auth"
- "traefik.http.middlewares.dashboard-auth.basicauth.usersfile=/etc/traefik/authorized_users"
ubuntu-test:
build: ./ubuntu-test
restart: unless-stopped
ports:
- '25057:22'
ollama:
image: ollama/ollama
restart: unless-stopped
@ -41,20 +33,20 @@ services:
ports:
- '11434:11434'
volumes:
- 'C:\tmp\ollama:/root/.ollama'
- './ollama:/root/.ollama'
ollama-webui:
image: 'ghcr.io/ollama-webui/ollama-webui:main'
restart: unless-stopped
container_name: ollama-webui
volumes:
- 'C:\tmp\ollama-webui:/app/backend/data'
- './ollama-webui:/app/backend/data'
depends_on:
- ollama
ports:
- 80:8080
environment:
- '/ollama/api=http://ollama:11434/api'
- './ollama/api=http://ollama:11434/api'
extra_hosts:
- host.docker.internal:host-gateway
labels: