mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
fix critical issues: rename headscale compse -> compose, add mailhog compose+sample.env, add ollama compose.yaml
This commit is contained in:
@@ -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:
|
||||
@@ -0,0 +1,5 @@
|
||||
# Compose
|
||||
MAILHOG_IMAGE=mailhog/mailhog:latest
|
||||
MAILHOG_RESTART=unless-stopped
|
||||
MAILHOG_SMTP_PORT=1025
|
||||
MAILHOG_UI_PORT=8025
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user