Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.3 KB
Raw Blame
services:
  langflow:
    image: langflowai/langflow:1.8.0@sha256:14cdad2f5f275adc2aec50bbf13f1464f25e8980ac641245ce5c13cc485be8ac
    container_name: ods-langflow
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - LANGFLOW_HOST=0.0.0.0
      - LANGFLOW_PORT=7860
      # Langflow defaults to AUTO_LOGIN=true, which hands every caller a
      # superuser session and unauthenticated Python execution.
      - LANGFLOW_AUTO_LOGIN=false
      - LANGFLOW_SUPERUSER=${LANGFLOW_SUPERUSER:-admin}
      - LANGFLOW_SUPERUSER_PASSWORD=${LANGFLOW_SUPERUSER_PASSWORD:?LANGFLOW_SUPERUSER_PASSWORD must be set}
      - LANGFLOW_SECRET_KEY=${LANGFLOW_SECRET_KEY:?LANGFLOW_SECRET_KEY must be set}
      - LLM_API_URL=${LLM_API_URL:-http://llama-server:8080}
    volumes:
      - ./data/langflow:/app/data
    ports:
      - "127.0.0.1:${LANGFLOW_PORT:-7802}:7860"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1:7860/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s
    networks:
      - ods-network
    deploy:
      resources:
        limits:
          cpus: '2.0'
          memory: 4G
        reservations:
          cpus: '0.5'
          memory: 1G

networks:
  ods-network:
    external: true