| [project] | [project] | ||||
| name = "dify-api" | name = "dify-api" | ||||
| version = "2.0.0-beta2" | |||||
| version = "1.9.0" | |||||
| requires-python = ">=3.11,<3.13" | requires-python = ">=3.11,<3.13" | ||||
| dependencies = [ | dependencies = [ |
| # Start Dify Plugin Daemon container for plugin management | # Start Dify Plugin Daemon container for plugin management | ||||
| # Dify Plugin Daemon provides plugin lifecycle management and execution | # Dify Plugin Daemon provides plugin lifecycle management and execution | ||||
| logger.info("Initializing Dify Plugin Daemon container...") | logger.info("Initializing Dify Plugin Daemon container...") | ||||
| self.dify_plugin_daemon = DockerContainer(image="langgenius/dify-plugin-daemon:0.2.0-local") | |||||
| self.dify_plugin_daemon = DockerContainer(image="langgenius/dify-plugin-daemon:0.3.0-local") | |||||
| self.dify_plugin_daemon.with_exposed_ports(5002) | self.dify_plugin_daemon.with_exposed_ports(5002) | ||||
| self.dify_plugin_daemon.env = { | self.dify_plugin_daemon.env = { | ||||
| "DB_HOST": db_host, | "DB_HOST": db_host, |
| version = 1 | version = 1 | ||||
| revision = 2 | |||||
| revision = 3 | |||||
| requires-python = ">=3.11, <3.13" | requires-python = ">=3.11, <3.13" | ||||
| resolution-markers = [ | resolution-markers = [ | ||||
| "python_full_version >= '3.12.4' and sys_platform == 'linux'", | "python_full_version >= '3.12.4' and sys_platform == 'linux'", | ||||
| [[package]] | [[package]] | ||||
| name = "dify-api" | name = "dify-api" | ||||
| version = "2.0.0b2" | |||||
| version = "1.9.0" | |||||
| source = { virtual = "." } | source = { virtual = "." } | ||||
| dependencies = [ | dependencies = [ | ||||
| { name = "arize-phoenix-otel" }, | { name = "arize-phoenix-otel" }, |
| services: | services: | ||||
| # API service | # API service | ||||
| api: | api: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # worker service | # worker service | ||||
| # The Celery worker for processing the queue. | # The Celery worker for processing the queue. | ||||
| worker: | worker: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # worker_beat service | # worker_beat service | ||||
| # Celery beat for scheduling periodic tasks. | # Celery beat for scheduling periodic tasks. | ||||
| worker_beat: | worker_beat: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # Frontend web application. | # Frontend web application. | ||||
| web: | web: | ||||
| image: langgenius/dify-web:2.0.0-beta.2 | |||||
| image: langgenius/dify-web:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| CONSOLE_API_URL: ${CONSOLE_API_URL:-} | CONSOLE_API_URL: ${CONSOLE_API_URL:-} | ||||
| # plugin daemon | # plugin daemon | ||||
| plugin_daemon: | plugin_daemon: | ||||
| image: langgenius/dify-plugin-daemon:0.3.0b1-local | |||||
| image: langgenius/dify-plugin-daemon:0.3.0-local | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. |
| ports: | ports: | ||||
| - "${EXPOSE_POSTGRES_PORT:-5432}:5432" | - "${EXPOSE_POSTGRES_PORT:-5432}:5432" | ||||
| healthcheck: | healthcheck: | ||||
| test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ] | |||||
| test: | |||||
| [ | |||||
| "CMD", | |||||
| "pg_isready", | |||||
| "-h", | |||||
| "db", | |||||
| "-U", | |||||
| "${PGUSER:-postgres}", | |||||
| "-d", | |||||
| "${POSTGRES_DB:-dify}", | |||||
| ] | |||||
| interval: 1s | interval: 1s | ||||
| timeout: 3s | timeout: 3s | ||||
| retries: 30 | retries: 30 | ||||
| ports: | ports: | ||||
| - "${EXPOSE_REDIS_PORT:-6379}:6379" | - "${EXPOSE_REDIS_PORT:-6379}:6379" | ||||
| healthcheck: | healthcheck: | ||||
| test: [ 'CMD-SHELL', 'redis-cli -a ${REDIS_PASSWORD:-difyai123456} ping | grep -q PONG' ] | |||||
| test: | |||||
| [ | |||||
| "CMD-SHELL", | |||||
| "redis-cli -a ${REDIS_PASSWORD:-difyai123456} ping | grep -q PONG", | |||||
| ] | |||||
| # The DifySandbox | # The DifySandbox | ||||
| sandbox: | sandbox: | ||||
| - ./volumes/sandbox/dependencies:/dependencies | - ./volumes/sandbox/dependencies:/dependencies | ||||
| - ./volumes/sandbox/conf:/conf | - ./volumes/sandbox/conf:/conf | ||||
| healthcheck: | healthcheck: | ||||
| test: [ "CMD", "curl", "-f", "http://localhost:8194/health" ] | |||||
| test: ["CMD", "curl", "-f", "http://localhost:8194/health"] | |||||
| networks: | networks: | ||||
| - ssrf_proxy_network | - ssrf_proxy_network | ||||
| # plugin daemon | # plugin daemon | ||||
| plugin_daemon: | plugin_daemon: | ||||
| image: langgenius/dify-plugin-daemon:0.3.0b1-local | |||||
| image: langgenius/dify-plugin-daemon:0.3.0-local | |||||
| restart: always | restart: always | ||||
| env_file: | env_file: | ||||
| - ./middleware.env | - ./middleware.env | ||||
| volumes: | volumes: | ||||
| - ./ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template | - ./ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template | ||||
| - ./ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh | - ./ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh | ||||
| entrypoint: [ "sh", "-c", "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh" ] | |||||
| entrypoint: | |||||
| [ | |||||
| "sh", | |||||
| "-c", | |||||
| "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh", | |||||
| ] | |||||
| env_file: | env_file: | ||||
| - ./middleware.env | - ./middleware.env | ||||
| environment: | environment: |
| services: | services: | ||||
| # API service | # API service | ||||
| api: | api: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # worker service | # worker service | ||||
| # The Celery worker for processing the queue. | # The Celery worker for processing the queue. | ||||
| worker: | worker: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # worker_beat service | # worker_beat service | ||||
| # Celery beat for scheduling periodic tasks. | # Celery beat for scheduling periodic tasks. | ||||
| worker_beat: | worker_beat: | ||||
| image: langgenius/dify-api:2.0.0-beta.2 | |||||
| image: langgenius/dify-api:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. | ||||
| # Frontend web application. | # Frontend web application. | ||||
| web: | web: | ||||
| image: langgenius/dify-web:2.0.0-beta.2 | |||||
| image: langgenius/dify-web:1.9.0 | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| CONSOLE_API_URL: ${CONSOLE_API_URL:-} | CONSOLE_API_URL: ${CONSOLE_API_URL:-} | ||||
| # plugin daemon | # plugin daemon | ||||
| plugin_daemon: | plugin_daemon: | ||||
| image: langgenius/dify-plugin-daemon:0.3.0b1-local | |||||
| image: langgenius/dify-plugin-daemon:0.3.0-local | |||||
| restart: always | restart: always | ||||
| environment: | environment: | ||||
| # Use the shared environment variables. | # Use the shared environment variables. |
| { | { | ||||
| "name": "dify-web", | "name": "dify-web", | ||||
| "version": "2.0.0-beta2", | |||||
| "version": "1.9.0", | |||||
| "private": true, | "private": true, | ||||
| "packageManager": "pnpm@10.16.0", | "packageManager": "pnpm@10.16.0", | ||||
| "engines": { | "engines": { |