From d35aa9c33fb10d8dbaa65cb49572017fdd29bf5f Mon Sep 17 00:00:00 2001 From: rushilchugh01 <58689126+rushilchugh01@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:53:54 +0530 Subject: [PATCH 1/2] Update index.mdx Updating the compose-dev.yml file specified at https://docs.openwebui.com/tutorial-development/ to fix the errors at https://github.com/open-webui/docs/issues/179 --- docs/tutorial-development/index.mdx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/tutorial-development/index.mdx b/docs/tutorial-development/index.mdx index de7927f..c6ce0e5 100644 --- a/docs/tutorial-development/index.mdx +++ b/docs/tutorial-development/index.mdx @@ -56,7 +56,7 @@ services: container_name: ollama pull_policy: always tty: true - restart: always + restart: no image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest} frontend: @@ -85,14 +85,15 @@ services: command: ["bash", "dev.sh"] env_file: ".env" environment: - - ENV: dev + - ENV=dev + - WEBUI_AUTH=False volumes: - data:/app/backend/data extra_hosts: - host.docker.internal:host-gateway ports: - "8080:8080" - restart: always + restart: no develop: watch: - action: sync @@ -105,6 +106,7 @@ services: volumes: data: {} + ollama: {} ``` 2. To start the containers, run `docker compose -f compose-dev.yaml up --watch`. The webapp will be available at `http://localhost:3000` 3. To stop, hit `ctrl-c` or run `docker compose -f compose-dev.yaml down @@ -132,4 +134,4 @@ services: extra_hosts: - "host.docker.internal:host-gateway" restart: always -``` \ No newline at end of file +``` From 8ac7e3a028f9ca7c3c440af1b1cf52e899d5212c Mon Sep 17 00:00:00 2001 From: rushilchugh01 <58689126+rushilchugh01@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:56:50 +0530 Subject: [PATCH 2/2] Update index.mdx Updating the compose-dev.yml file specified at https://docs.openwebui.com/tutorial-development/ to fix the errors at https://github.com/open-webui/docs/issues/179 --- docs/tutorial-development/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial-development/index.mdx b/docs/tutorial-development/index.mdx index c6ce0e5..61c51a9 100644 --- a/docs/tutorial-development/index.mdx +++ b/docs/tutorial-development/index.mdx @@ -56,7 +56,7 @@ services: container_name: ollama pull_policy: always tty: true - restart: no + restart: always image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest} frontend: @@ -93,7 +93,7 @@ services: - host.docker.internal:host-gateway ports: - "8080:8080" - restart: no + restart: always develop: watch: - action: sync