From 27640847973a495643475ac0894488c12e3cb2ef Mon Sep 17 00:00:00 2001 From: Klagarge Date: Tue, 6 Feb 2024 11:01:37 +0100 Subject: [PATCH] update volume for server --- docker-compose.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9c58618..a9a867a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: