- Updated .env.example to clarify database password usage for OpenWebUI. - Modified compose-up.sh to ensure databases are created if they do not exist after bringing services up. - Added ensure-databases.sh script to check and create necessary Postgres databases. - Adjusted health check for Nextcloud service in docker-compose to point to the correct status endpoint. - Updated OpenWebUI's DATABASE_URL to use environment variables for Postgres credentials.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
# Optional overlay: docker compose -f docker-compose.yml -f openwebui/docker-compose.openwebui.yml up -d
|
|
services:
|
|
openwebui:
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
restart: unless-stopped
|
|
environment:
|
|
WEBUI_AUTH: "true"
|
|
WEBUI_AUTH_TRUSTED_EMAIL_HEADER: X-Ulti-User-Email
|
|
WEBUI_AUTH_TRUSTED_NAME_HEADER: X-Ulti-User-Name
|
|
WEBUI_AUTH_TRUSTED_ROLE_HEADER: X-Ulti-User-Role
|
|
ENABLE_PERSISTENT_CONFIG: "false"
|
|
ENABLE_DIRECT_CONNECTIONS: "false"
|
|
OPENAI_API_BASE_URL: http://ultid:8080/api/v1/ai
|
|
OPENAI_API_KEY: ulti-gateway
|
|
WEBUI_URL: http://${DOMAIN:-localhost}/ai
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/openwebui
|
|
USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED: "false"
|
|
volumes:
|
|
- openwebui_data:/app/backend/data
|
|
- ../services/openwebui/pipelines:/app/pipelines/custom:ro
|
|
networks:
|
|
- ulti-net
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
ultid:
|
|
condition: service_started
|
|
|
|
ultimail-mcp:
|
|
build:
|
|
context: ../services/ultimail-mcp
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
ULTID_API_URL: http://ultid:8080/api/v1
|
|
MCP_PORT: "3100"
|
|
networks:
|
|
- ulti-net
|
|
depends_on:
|
|
ultid:
|
|
condition: service_started
|
|
|
|
volumes:
|
|
openwebui_data:
|