diff --git a/canrun/kiwix/docker-compose.yml b/canrun/kiwix/docker-compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/canrun/kiwix/zimlist.sh b/canrun/kiwix/zimlist.sh new file mode 100755 index 0000000..d3fce08 --- /dev/null +++ b/canrun/kiwix/zimlist.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Find all .zim files in current directory and format them as an array +zim_files=() +while IFS= read -r -d $'\0' file; do + zim_files+=("\"$(basename "$file")\"") +done < <(find . -maxdepth 1 -type f -name "*.zim" -print0) + +# Format the output +if [ ${#zim_files[@]} -gt 0 ]; then + printf "[\n" + printf " %s" "${zim_files[0]}" + for ((i=1; i<${#zim_files[@]}; i++)); do + printf ",\n %s" "${zim_files[$i]}" + done + printf "\n]\n" +else + echo "No .zim files found in current directory" + exit 1 +fi diff --git a/canrun/ollama-webui/docker-compose b/canrun/ollama-webui/docker-compose new file mode 100755 index 0000000..555b130 --- /dev/null +++ b/canrun/ollama-webui/docker-compose @@ -0,0 +1,8 @@ +#!/bin/bash +docker-compose up -d +models=("devstral-small-2:cloud" "gemini-3-flash-preview:cloud" "nomic-embed-text" "ministral-3:3b" "qwen3:0.6b" "gemma3:270m" "gemma3:1b" "hf.co/mradermacher/DeepSeek-R1-Distill-Qwen-1.5B-Fully-Uncensored-i1-GGUF:Q4_K_S") +for model in "${models[@]}"; do + docker exec $(docker ps | grep ollama | awk '{print $1}') bash -c "ollama pull $model" +done +echo "" +echo "---OLLAMA INIT DONE !" diff --git a/canrun/ollama-webui/docker-compose.yml b/canrun/ollama-webui/docker-compose.yml new file mode 100644 index 0000000..009275c --- /dev/null +++ b/canrun/ollama-webui/docker-compose.yml @@ -0,0 +1,28 @@ +services: + ollama: + image: ollama/ollama:latest + ports: + - "192.168.0.131:11434:11434" # Exposing API port + environment: + - OLLAMA_HOST=0.0.0.0:11434 + restart: unless-stopped # Auto-restart + + open-webui: + image: ghcr.io/open-webui/open-webui:main + container_name: open-webui + volumes: + - open-webui:/app/backend/data + depends_on: + - ollama + ports: + - 192.168.0.131:3005:8080 + environment: + - 'OLLAMA_BASE_URL=http://192.168.0.131:11434' + - 'WEBUI_SECRET_KEY=' + #extra_hosts: + #- host.docker.internal:host-gateway + restart: unless-stopped + +volumes: + ollama: {} + open-webui: {} diff --git a/canrun/signal/docker-compose.yml b/canrun/signal/docker-compose.yml new file mode 100644 index 0000000..9364168 --- /dev/null +++ b/canrun/signal/docker-compose.yml @@ -0,0 +1,15 @@ +services: + signal: + image: lscr.io/linuxserver/signal:latest + container_name: signal + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Bucharest + volumes: + - ./config:/config + ports: + - 8000:3000 + - 8001:3001 + shm_size: "1gb" + restart: unless-stopped diff --git a/clean.sh b/clean.sh deleted file mode 100755 index 128d9a1..0000000 --- a/clean.sh +++ /dev/null @@ -1,10 +0,0 @@ -set -xeu - -docker image prune - -docker container prune - -docker volume prune - -docker builder prune -