diff --git a/docker_compose/openai/.gitignore b/docker_compose/openai/.gitignore new file mode 100644 index 0000000..88e847a --- /dev/null +++ b/docker_compose/openai/.gitignore @@ -0,0 +1,5 @@ +# ------------------------------------------------------------------------------ +# SECRETS AND CREDENTIALS (NEVER COMMIT THESE) +# ------------------------------------------------------------------------------ + +data/ \ No newline at end of file diff --git a/docker_compose/openai/docker-compose.yaml b/docker_compose/openai/docker-compose.yaml new file mode 100644 index 0000000..1b6b092 --- /dev/null +++ b/docker_compose/openai/docker-compose.yaml @@ -0,0 +1,24 @@ +# Open WebUI - https://docs.openwebui.com/getting-started/quick-start/ +services: + openwebui: + container_name: openai + image: ghcr.io/open-webui/open-webui:latest + restart: unless-stopped + ports: + - "${OPEN_WEB_UI_PORT}:8080" + volumes: + - ./data:/app/backend/data + environment: + - OLLAMA_BASE_URL=${OPEN_WEB_UI_COMPUTE} + - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY} + labels: + # Nginx Proxy Manager Automation + - "npm.proxy.domains=openai" + - "npm.proxy.host=${DOCKER_HOST_IP}" + - "npm.proxy.port=${OPEN_WEB_UI_PORT}" + - "npm.proxy.scheme=http" + #- "npm.proxy.websockets=true" + #- "npm.proxy.ssl_verify=false" + #- "npm.proxy.ssl.force=true" + #- "npm.proxy.ssl.certificate.id=1" + - "pihole.custom-record=[[\"openai\", \"${DOCKER_HOST_IP}\"]]" \ No newline at end of file