diff --git a/.env b/.env new file mode 100644 index 0000000..e678a63 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +# SearXNG +SEARXNG_HOSTNAME=localhost:8080/ diff --git a/.gitignore b/.gitignore index ee3dc23..91a8bdb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,7 @@ ollama/ .env.local + +open-webui/ + +searxng/ diff --git a/docker-compose.yml b/docker-compose.yml index c51d7de..5e8be14 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,8 @@ services: - mongodb: - image: mongo:4.4.6 - ports: - - 27017:27017 - networks: - - chat-ui - - ollama-service: + ollama: image: ollama/ollama:rocm + container_name: ollama ports: - 11434:11434 volumes: @@ -16,24 +10,51 @@ services: devices: - /dev/kfd # Grant access to /dev/kfd device - /dev/dri # Grant access to /dev/dri device - networks: - chat-ui + restart: unless-stopped - chat-ui: - image: ghcr.io/huggingface/chat-ui-db:latest - volumes: - - ./db:/data - - .env.local:/app/.env.local + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-WebUI ports: - - 3000:3000 - environment: - - MONGODB_URL=mongodb://mongodb:27017 + - "3000:8080" + volumes: + - ./open-webui:/app/backend/data depends_on: - - mongodb + - ollama + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + extra_hosts: + - "host.docker.internal:host-gateway" + restart: unless-stopped networks: - chat-ui + searxng: + container_name: searxng + image: searxng/searxng:latest + ports: + - "8080:8080" + volumes: + - ./searxng:/etc/searxng:rw + env_file: + - .env + restart: unless-stopped + cap_drop: + - ALL + cap_add: + - CHOWN + - SETGID + - SETUID + - DAC_OVERRIDE + logging: + driver: "json-file" + options: + max-size: "1m" + max-file: "1" + networks: + - chat-ui networks: chat-ui: