fix critical issues: rename headscale compse -> compose, add mailhog compose+sample.env, add ollama compose.yaml

This commit is contained in:
openhands
2026-07-16 04:40:53 +00:00
parent 4fcb69052e
commit 1484b17fa2
4 changed files with 56 additions and 0 deletions
+15
View File
@@ -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:
+5
View File
@@ -0,0 +1,5 @@
# Compose
MAILHOG_IMAGE=mailhog/mailhog:latest
MAILHOG_RESTART=unless-stopped
MAILHOG_SMTP_PORT=1025
MAILHOG_UI_PORT=8025
+36
View File
@@ -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: