From 1484b17fa2a0aaffc9a1f134ff1a4e662c86504b Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 16 Jul 2026 04:40:53 +0000 Subject: [PATCH] fix critical issues: rename headscale compse -> compose, add mailhog compose+sample.env, add ollama compose.yaml --- headscale_dev/{compse.yaml => compose.yaml} | 0 mailhog_dev/compose.yaml | 15 +++++++++ mailhog_dev/sample.env | 5 +++ ollama/compose.yaml | 36 +++++++++++++++++++++ 4 files changed, 56 insertions(+) rename headscale_dev/{compse.yaml => compose.yaml} (100%) create mode 100644 mailhog_dev/compose.yaml create mode 100644 mailhog_dev/sample.env create mode 100644 ollama/compose.yaml diff --git a/headscale_dev/compse.yaml b/headscale_dev/compose.yaml similarity index 100% rename from headscale_dev/compse.yaml rename to headscale_dev/compose.yaml diff --git a/mailhog_dev/compose.yaml b/mailhog_dev/compose.yaml new file mode 100644 index 0000000..af0dd93 --- /dev/null +++ b/mailhog_dev/compose.yaml @@ -0,0 +1,15 @@ +services: + mailhog: + image: ${MAILHOG_IMAGE:-mailhog/mailhog:latest} + restart: ${MAILHOG_RESTART:-unless-stopped} + ports: + - "${MAILHOG_SMTP_PORT:-1025}:1025" + - "${MAILHOG_UI_PORT:-8025}:8025" + networks: + - proxy + - internal + +networks: + proxy: + external: true + internal: diff --git a/mailhog_dev/sample.env b/mailhog_dev/sample.env new file mode 100644 index 0000000..b430e05 --- /dev/null +++ b/mailhog_dev/sample.env @@ -0,0 +1,5 @@ +# Compose +MAILHOG_IMAGE=mailhog/mailhog:latest +MAILHOG_RESTART=unless-stopped +MAILHOG_SMTP_PORT=1025 +MAILHOG_UI_PORT=8025 diff --git a/ollama/compose.yaml b/ollama/compose.yaml new file mode 100644 index 0000000..1509382 --- /dev/null +++ b/ollama/compose.yaml @@ -0,0 +1,36 @@ +services: + ollama: + image: ${OLLAMA_IMAGE:-ollama/ollama} + restart: ${OLLAMA_RESTART:-unless-stopped} + volumes: + - ${VOL_PATH:-/data}/ollama:/root/.ollama + environment: + - OLLAMA_KEEP_ALIVE=${OLLAMA_KEEP_ALIVE:-5m} + ports: + - "${OLLAMA_PORT:-11434}:11434" + networks: + - proxy + - internal + + webui: + image: ${WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:main} + restart: ${WEBUI_RESTART:-unless-stopped} + volumes: + - ${VOL_PATH:-/data}/webui/cache:/root/.cache + - ${VOL_PATH:-/data}/webui/data:/app/backend/data + environment: + - WEBUI_URL=${WEBUI_URL:-http://localhost:8080} + - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:?must_be_set} + - OLLAMA_BASE_URL=http://ollama:11434 + ports: + - "${WEBUI_PORT:-8080}:8080" + networks: + - proxy + - internal + depends_on: + - ollama + +networks: + proxy: + external: true + internal: