Update docker/docker-compose.yaml
Post-Merge Checks / Check Changed Files (push) Waiting to run
Post-Merge Checks / External Runtime E2E (push) Blocked by required conditions
autofix.ci / autofix (push) Waiting to run
Build and Push API & Web / build (agent, {{defaultContext}}, dify-agent/Dockerfile, DIFY_AGENT_IMAGE_NAME, linux/amd64, depot-ubuntu-24.04-4, build-agent-amd64) (push) Waiting to run
Build and Push API & Web / build (agent, {{defaultContext}}, dify-agent/Dockerfile, DIFY_AGENT_IMAGE_NAME, linux/arm64, depot-ubuntu-24.04-4, build-agent-arm64) (push) Waiting to run
Build and Push API & Web / build (api, {{defaultContext}}, api/Dockerfile, DIFY_API_IMAGE_NAME, linux/amd64, depot-ubuntu-24.04-4, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, {{defaultContext}}, api/Dockerfile, DIFY_API_IMAGE_NAME, linux/arm64, depot-ubuntu-24.04-4, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (local-sandbox, {{defaultContext}}:dify-agent-runtime, docker/Dockerfile, DIFY_AGENT_LOCAL_SANDBOX_IMAGE_NAME, linux/amd64, depot-ubuntu-24.04-4, build-agent-local-sandbox-amd64) (push) Waiting to run
Build and Push API & Web / build (local-sandbox, {{defaultContext}}:dify-agent-runtime, docker/Dockerfile, DIFY_AGENT_LOCAL_SANDBOX_IMAGE_NAME, linux/arm64, depot-ubuntu-24.04-4, build-agent-local-sandbox-arm64) (push) Waiting to run
Build and Push API & Web / build (web, {{defaultContext}}, web/Dockerfile, DIFY_WEB_IMAGE_NAME, linux/amd64, depot-ubuntu-24.04-4, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, {{defaultContext}}, web/Dockerfile, DIFY_WEB_IMAGE_NAME, linux/arm64, depot-ubuntu-24.04-4, build-web-arm64) (push) Waiting to run
Build and Push API & Web / fork-build-validate ({{defaultContext}}, api/Dockerfile, validate-api-amd64) (push) Waiting to run
Build and Push API & Web / fork-build-validate ({{defaultContext}}, dify-agent/Dockerfile, validate-agent-amd64) (push) Waiting to run
Build and Push API & Web / fork-build-validate ({{defaultContext}}, web/Dockerfile, validate-web-amd64) (push) Waiting to run
Build and Push API & Web / fork-build-validate ({{defaultContext}}:dify-agent-runtime, docker/Dockerfile, validate-agent-local-sandbox-amd64) (push) Waiting to run
Build and Push API & Web / create-manifest (agent, DIFY_AGENT_IMAGE_NAME, merge-agent-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (local-sandbox, DIFY_AGENT_LOCAL_SANDBOX_IMAGE_NAME, merge-agent-local-sandbox-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions

This commit is contained in:
2026-07-28 21:50:33 +00:00
parent 2edc576ab1
commit c1a4a75301
+82 -82
View File
@@ -7,27 +7,27 @@
# Shared configuration using YAML anchors and env_file
x-shared-api-worker-config: &shared-api-worker-config
env_file:
- path: ./envs/core-services/shared.env
- path: ./docker/envs/core-services/shared.env
required: false
- path: ./envs/core-services/api.env
- path: ./docker/envs/core-services/api.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- path: ./envs/databases/db-postgres.env
- path: ./docker/envs/databases/db-postgres.env
required: false
- path: ./envs/databases/db-mysql.env
- path: ./docker/envs/databases/db-mysql.env
required: false
- path: ./envs/databases/redis.env
- path: ./docker/envs/databases/redis.env
required: false
- path: ./envs/vectorstores/weaviate.env
- path: ./docker/envs/vectorstores/weaviate.env
required: false
- path: ./envs/infrastructure/nginx.env
- path: ./docker/envs/infrastructure/nginx.env
required: false
- path: ./envs/infrastructure/certbot.env
- path: ./docker/envs/infrastructure/certbot.env
required: false
- path: ./envs/infrastructure/ssrf-proxy.env
- path: ./docker/envs/infrastructure/ssrf-proxy.env
required: false
- ./.env
- ./docker/.env
networks:
- ssrf_proxy_network
- default
@@ -35,27 +35,27 @@ x-shared-api-worker-config: &shared-api-worker-config
x-shared-worker-config: &shared-worker-config
env_file:
- path: ./envs/core-services/shared.env
- path: ./docker/envs/core-services/shared.env
required: false
- path: ./envs/core-services/worker.env
- path: ./docker/envs/core-services/worker.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- path: ./envs/databases/db-postgres.env
- path: ./docker/envs/databases/db-postgres.env
required: false
- path: ./envs/databases/db-mysql.env
- path: ./docker/envs/databases/db-mysql.env
required: false
- path: ./envs/databases/redis.env
- path: ./docker/envs/databases/redis.env
required: false
- path: ./envs/vectorstores/weaviate.env
- path: ./docker/envs/vectorstores/weaviate.env
required: false
- path: ./envs/infrastructure/nginx.env
- path: ./docker/envs/infrastructure/nginx.env
required: false
- path: ./envs/infrastructure/certbot.env
- path: ./docker/envs/infrastructure/certbot.env
required: false
- path: ./envs/infrastructure/ssrf-proxy.env
- path: ./docker/envs/infrastructure/ssrf-proxy.env
required: false
- ./.env
- ./docker/.env
networks:
- ssrf_proxy_network
- default
@@ -63,27 +63,27 @@ x-shared-worker-config: &shared-worker-config
x-shared-worker-beat-config: &shared-worker-beat-config
env_file:
- path: ./envs/core-services/shared.env
- path: ./docker/envs/core-services/shared.env
required: false
- path: ./envs/core-services/worker-beat.env
- path: ./docker/envs/core-services/worker-beat.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- path: ./envs/databases/db-postgres.env
- path: ./docker/envs/databases/db-postgres.env
required: false
- path: ./envs/databases/db-mysql.env
- path: ./docker/envs/databases/db-mysql.env
required: false
- path: ./envs/databases/redis.env
- path: ./docker/envs/databases/redis.env
required: false
- path: ./envs/vectorstores/weaviate.env
- path: ./docker/envs/vectorstores/weaviate.env
required: false
- path: ./envs/infrastructure/nginx.env
- path: ./docker/envs/infrastructure/nginx.env
required: false
- path: ./envs/infrastructure/certbot.env
- path: ./docker/envs/infrastructure/certbot.env
required: false
- path: ./envs/infrastructure/ssrf-proxy.env
- path: ./docker/envs/infrastructure/ssrf-proxy.env
required: false
- ./.env
- ./docker/.env
networks:
- ssrf_proxy_network
- default
@@ -106,7 +106,7 @@ services:
chown -R 1001:1001 /app/api/storage && touch "$${FLAG_FILE}"
echo "Permissions initialized. Exiting."
volumes:
- ./volumes/app/storage:/app/api/storage
- ./docker/volumes/app/storage:/app/api/storage
restart: "no"
# API service
@@ -142,7 +142,7 @@ services:
agent_backend:
condition: service_started
volumes:
- ./volumes/app/storage:/app/api/storage
- ./docker/volumes/app/storage:/app/api/storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
interval: 30s
@@ -202,7 +202,7 @@ services:
agent_backend:
condition: service_started
volumes:
- ./volumes/app/storage:/app/api/storage
- ./docker/volumes/app/storage:/app/api/storage
healthcheck:
test: ["CMD-SHELL", "celery -A celery_healthcheck.celery inspect ping"]
interval: ${COMPOSE_WORKER_HEALTHCHECK_INTERVAL:-30s}
@@ -241,11 +241,11 @@ services:
image: langgenius/dify-web:1.16.1
restart: always
env_file:
- path: ./envs/core-services/web.env
- path: ./docker/envs/core-services/web.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- ./.env
- ./docker/.env
environment:
CONSOLE_API_URL: ${CONSOLE_API_URL:-}
SERVER_CONSOLE_API_URL: ${SERVER_CONSOLE_API_URL:-http://api:5001}
@@ -295,7 +295,7 @@ services:
-c 'statement_timeout=${POSTGRES_STATEMENT_TIMEOUT:-0}'
-c 'idle_in_transaction_session_timeout=${POSTGRES_IDLE_IN_TRANSACTION_SESSION_TIMEOUT:-0}'
volumes:
- ./volumes/db/data:/var/lib/postgresql/data
- ./docker/volumes/db/data:/var/lib/postgresql/data
healthcheck:
test:
[
@@ -327,7 +327,7 @@ services:
--innodb_log_file_size=${MYSQL_INNODB_LOG_FILE_SIZE:-128M}
--innodb_flush_log_at_trx_commit=${MYSQL_INNODB_FLUSH_LOG_AT_TRX_COMMIT:-2}
volumes:
- ${MYSQL_HOST_VOLUME:-./volumes/mysql/data}:/var/lib/mysql
- ${MYSQL_HOST_VOLUME:-./docker/volumes/mysql/data}:/var/lib/mysql
healthcheck:
test:
[
@@ -349,7 +349,7 @@ services:
environment:
REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}
volumes:
- ./volumes/redis/data:/data
- ./docker/volumes/redis/data:/data
command: redis-server --requirepass ${REDIS_PASSWORD:-difyai123456}
healthcheck:
test:
@@ -363,11 +363,11 @@ services:
image: langgenius/dify-sandbox:0.2.15
restart: always
env_file:
- path: ./envs/core-services/sandbox.env
- path: ./docker/envs/core-services/sandbox.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- ./.env
- ./docker/.env
environment:
API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
GIN_MODE: ${SANDBOX_GIN_MODE:-release}
@@ -378,8 +378,8 @@ services:
SANDBOX_PORT: ${SANDBOX_PORT:-8194}
PIP_MIRROR_URL: ${PIP_MIRROR_URL:-}
volumes:
- ./volumes/sandbox/dependencies:/dependencies
- ./volumes/sandbox/conf:/conf
- ./docker/volumes/sandbox/dependencies:/dependencies
- ./docker/volumes/sandbox/conf:/conf
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8194/health"]
networks:
@@ -390,7 +390,7 @@ services:
image: langgenius/dify-agent-local-sandbox:1.16.1
restart: always
env_file:
- path: ./envs/core-services/local-sandbox.env
- path: ./docker/envs/core-services/local-sandbox.env
required: false
environment:
- SHELLCTL_AUTH_TOKEN=${DIFY_AGENT_LOCAL_SANDBOX_AUTH_TOKEN:-${DIFY_AGENT_SHELLCTL_AUTH_TOKEN:-}}
@@ -412,19 +412,19 @@ services:
image: langgenius/dify-plugin-daemon:0.6.3-local
restart: always
env_file:
- path: ./envs/core-services/shared.env
- path: ./docker/envs/core-services/shared.env
required: false
- path: ./envs/core-services/plugin-daemon.env
- path: ./docker/envs/core-services/plugin-daemon.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- path: ./envs/databases/db-postgres.env
- path: ./docker/envs/databases/db-postgres.env
required: false
- path: ./envs/databases/db-mysql.env
- path: ./docker/envs/databases/db-mysql.env
required: false
- path: ./envs/databases/redis.env
- path: ./docker/envs/databases/redis.env
required: false
- ./.env
- ./docker/.env
networks:
- ssrf_proxy_network
- default
@@ -479,7 +479,7 @@ services:
ports:
- "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}"
volumes:
- ./volumes/plugin_daemon:/app/storage
- ./docker/volumes/plugin_daemon:/app/storage
depends_on:
db_postgres:
condition: service_healthy
@@ -493,13 +493,13 @@ services:
image: langgenius/dify-agent-backend:1.16.1
restart: always
env_file:
- path: ./envs/core-services/dify-agent.env
- path: ./docker/envs/core-services/dify-agent.env
required: false
- path: ./envs/security.env
- path: ./docker/envs/security.env
required: false
- path: ./envs/databases/redis.env
- path: ./docker/envs/databases/redis.env
required: false
- ./.env
- ./docker/.env
environment:
DIFY_AGENT_REDIS_URL: ${DIFY_AGENT_REDIS_URL:-redis://:${REDIS_PASSWORD:-difyai123456}@redis:6379/2}
DIFY_AGENT_REDIS_PREFIX: ${DIFY_AGENT_REDIS_PREFIX:-dify-agent}
@@ -535,9 +535,9 @@ services:
image: ubuntu/squid:latest
restart: always
volumes:
- ./ssrf_proxy/squid-agent.conf.template:/etc/squid/squid.conf.template
- ./ssrf_proxy/squid-common.conf.template:/etc/squid/dify_common.conf.template
- ./ssrf_proxy/docker-agent-entrypoint.sh:/docker-entrypoint-mount.sh
- ./docker/ssrf_proxy/squid-agent.conf.template:/etc/squid/squid.conf.template
- ./docker/ssrf_proxy/squid-common.conf.template:/etc/squid/dify_common.conf.template
- ./docker/ssrf_proxy/docker-agent-entrypoint.sh:/docker-entrypoint-mount.sh
entrypoint:
[
"sh",
@@ -556,9 +556,9 @@ services:
image: ubuntu/squid:latest
restart: always
volumes:
- ./ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template
- ./ssrf_proxy/squid-common.conf.template:/etc/squid/dify_common.conf.template
- ./ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh
- ./docker/ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template
- ./docker/ssrf_proxy/squid-common.conf.template:/etc/squid/dify_common.conf.template
- ./docker/ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh
entrypoint:
[
"sh",
@@ -580,12 +580,12 @@ services:
profiles:
- certbot
volumes:
- ./volumes/certbot/conf:/etc/letsencrypt
- ./volumes/certbot/www:/var/www/html
- ./volumes/certbot/logs:/var/log/letsencrypt
- ./volumes/certbot/conf/live:/etc/letsencrypt/live
- ./certbot/update-cert.template.txt:/update-cert.template.txt
- ./certbot/docker-entrypoint.sh:/docker-entrypoint.sh
- ./docker/volumes/certbot/conf:/etc/letsencrypt
- ./docker/volumes/certbot/www:/var/www/html
- ./docker/volumes/certbot/logs:/var/log/letsencrypt
- ./docker/volumes/certbot/conf/live:/etc/letsencrypt/live
- ./docker/certbot/update-cert.template.txt:/update-cert.template.txt
- ./docker/certbot/docker-entrypoint.sh:/docker-entrypoint.sh
environment:
- CERTBOT_EMAIL=${CERTBOT_EMAIL:-}
- CERTBOT_DOMAIN=${CERTBOT_DOMAIN:-}
@@ -598,15 +598,15 @@ services:
image: nginx:latest
restart: always
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template
- ./nginx/proxy.conf.template:/etc/nginx/proxy.conf.template
- ./nginx/https.conf.template:/etc/nginx/https.conf.template
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/docker-entrypoint.sh:/docker-entrypoint-mount.sh
- ./nginx/ssl:/etc/ssl
- ./volumes/certbot/conf/live:/etc/letsencrypt/live
- ./volumes/certbot/conf:/etc/letsencrypt
- ./volumes/certbot/www:/var/www/html
- ./docker/nginx/nginx.conf.template:/etc/nginx/nginx.conf.template
- ./docker/nginx/proxy.conf.template:/etc/nginx/proxy.conf.template
- ./docker/nginx/https.conf.template:/etc/nginx/https.conf.template
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- ./docker/nginx/docker-entrypoint.sh:/docker-entrypoint-mount.sh
- ./docker/nginx/ssl:/etc/ssl
- ./docker/volumes/certbot/conf/live:/etc/letsencrypt/live
- ./docker/volumes/certbot/conf:/etc/letsencrypt
- ./docker/volumes/certbot/www:/var/www/html
entrypoint:
[
"sh",
@@ -643,7 +643,7 @@ services:
- weaviate
restart: always
volumes:
- ./volumes/weaviate:/var/lib/weaviate
- ./docker/volumes/weaviate:/var/lib/weaviate
environment:
PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}