# 和协会站点挤在同一台 4 核 8G 上时使用。 # 不映射宿主机端口,控制台从协会站点的 Nginx 反代进来。 # 镜像用 -amd64 标签,避免覆盖本机 arm64 演示镜像。 x-log: &log driver: json-file options: max-size: "10m" max-file: "3" services: init_permissions: image: busybox:1.36-amd64 api: image: langgenius/dify-api:1.19.0-amd64 logging: *log environment: GSREA_SSO_SECRET: ${GSREA_SSO_SECRET:-} GSREA_SSO_CONSOLE_WEB_URL: ${GSREA_SSO_CONSOLE_WEB_URL:-} HOSTED_FETCH_APP_TEMPLATES_MODE: db HOSTED_FETCH_PIPELINE_TEMPLATES_MODE: database volumes: - ../api/controllers/console/auth/gsrea_sso.py:/app/api/controllers/console/auth/gsrea_sso.py:ro - ../api/controllers/console/__init__.py:/app/api/controllers/console/__init__.py:ro - ../api/services/recommended_app_catalog_gateway.py:/app/api/services/recommended_app_catalog_gateway.py:ro - ../api/services/rag_pipeline/rag_pipeline.py:/app/api/services/rag_pipeline/rag_pipeline.py:ro deploy: resources: limits: memory: 768M worker: image: langgenius/dify-api:1.19.0-amd64 logging: *log deploy: resources: limits: memory: 640M worker_beat: image: langgenius/dify-api:1.19.0-amd64 logging: *log deploy: resources: limits: memory: 576M web: image: langgenius/dify-web:1.19.0-amd64 logging: *log deploy: resources: limits: memory: 256M db_postgres: image: postgres:15-alpine-amd64 logging: *log deploy: resources: limits: memory: 320M redis: image: redis:6-alpine-amd64 logging: *log deploy: resources: limits: memory: 96M sandbox: image: langgenius/dify-sandbox:0.2.15-amd64 logging: *log deploy: resources: limits: memory: 128M local_sandbox: image: langgenius/dify-agent-local-sandbox:1.19.0-amd64 logging: *log deploy: resources: limits: memory: 128M plugin_daemon: image: langgenius/dify-plugin-daemon:0.6.14-amd64 logging: *log ports: !reset [] deploy: resources: limits: memory: 256M agent_backend: image: langgenius/dify-agent-backend:1.19.0-amd64 logging: *log deploy: resources: limits: memory: 256M agent_ssrf_proxy: image: ubuntu/squid:latest-amd64 logging: *log deploy: resources: limits: memory: 48M ssrf_proxy: image: ubuntu/squid:latest-amd64 logging: *log deploy: resources: limits: memory: 48M nginx: image: nginx:1.27-amd64 container_name: dify-nginx logging: *log ports: !reset [] networks: - default - gsfdc deploy: resources: limits: memory: 48M weaviate: image: weaviate:1.39.13-amd64 logging: *log deploy: resources: limits: memory: 192M networks: gsfdc: external: true name: gsfdc