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