Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: keep dify compose file consistent format (#8102)

Su Yang54b72bdd0ad9
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index 770a141c0f4..a7bf64bae3a 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -344,7 +344,7 @@ services:
- CERTBOT_DOMAIN=${CERTBOT_DOMAIN}
- CERTBOT_OPTIONS=${CERTBOT_OPTIONS:-}
entrypoint: [ "/docker-entrypoint.sh" ]
- command: ["tail", "-f", "/dev/null"]
+ command: [ "tail", "-f", "/dev/null" ]
# The nginx reverse proxy.
# used for reverse proxying the API service and Web service.
@@ -390,7 +390,7 @@ services:
weaviate:
image: semitechnologies/weaviate:1.19.0
profiles:
- - ''
+ - ""
- weaviate
restart: always
volumes:
@@ -486,13 +486,13 @@ services:
- oracle
restart: always
volumes:
- - type: volume
- source: oradata
+ - source: oradata
+ type: volume
target: /opt/oracle/oradata
- ./startupscripts:/opt/oracle/scripts/startup
environment:
- - ORACLE_PWD=${ORACLE_PWD:-Dify123456}
- - ORACLE_CHARACTERSET=${ORACLE_CHARACTERSET:-AL32UTF8}
+ ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
+ ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
# Milvus vector database services
etcd:
@@ -501,10 +501,10 @@ services:
profiles:
- milvus
environment:
- - ETCD_AUTO_COMPACTION_MODE=${ETCD_AUTO_COMPACTION_MODE:-revision}
- - ETCD_AUTO_COMPACTION_RETENTION=${ETCD_AUTO_COMPACTION_RETENTION:-1000}
- - ETCD_QUOTA_BACKEND_BYTES=${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
- - ETCD_SNAPSHOT_COUNT=${ETCD_SNAPSHOT_COUNT:-50000}
+ ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
+ ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
+ ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
+ ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
volumes:
- ./volumes/milvus/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
@@ -554,11 +554,11 @@ services:
timeout: 20s
retries: 3
depends_on:
- - "etcd"
- - "minio"
+ - etcd
+ - minio
ports:
- - "19530:19530"
- - "9091:9091"
+ - 19530:19530
+ - 9091:9091
networks:
- milvus
@@ -569,10 +569,10 @@ services:
profiles:
- opensearch
environment:
- - discovery.type=${OPENSEARCH_DISCOVERY_TYPE:-single-node}
- - bootstrap.memory_lock=${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
- - OPENSEARCH_JAVA_OPTS=-Xms${OPENSEARCH_JAVA_OPTS_MIN:-512m} -Xmx${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
- - OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
+ discovery.type: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
+ bootstrap.memory_lock: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
+ OPENSEARCH_JAVA_OPTS: -Xms${OPENSEARCH_JAVA_OPTS_MIN:-512m} -Xmx${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
+ OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
ulimits:
memlock:
soft: ${OPENSEARCH_MEMLOCK_SOFT:--1}
@@ -612,7 +612,7 @@ services:
- ./volumes/myscale/log:/var/log/clickhouse-server
- ./volumes/myscale/config/users.d/custom_users_config.xml:/etc/clickhouse-server/users.d/custom_users_config.xml
ports:
- - "${MYSCALE_PORT:-8123}:${MYSCALE_PORT:-8123}"
+ - ${MYSCALE_PORT:-8123}:${MYSCALE_PORT:-8123}
# https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html
# https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-prerequisites
@@ -625,18 +625,18 @@ services:
volumes:
- dify_es01_data:/usr/share/elasticsearch/data
environment:
- - ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD:-elastic}
- - cluster.name=dify-es-cluster
- - node.name=dify-es0
- - discovery.type=single-node
- - xpack.license.self_generated.type=trial
- - xpack.security.enabled=true
- - xpack.security.enrollment.enabled=false
- - xpack.security.http.ssl.enabled=false
+ ELASTIC_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
+ cluster.name: dify-es-cluster
+ node.name: dify-es0
+ discovery.type: single-node
+ xpack.license.self_generated.type: trial
+ xpack.security.enabled: "true"
+ xpack.security.enrollment.enabled: "false"
+ xpack.security.http.ssl.enabled: "false"
ports:
- ${ELASTICSEARCH_PORT:-9200}:9200
healthcheck:
- test: ["CMD", "curl", "-s", "http://localhost:9200/_cluster/health?pretty"]
+ test: [ "CMD", "curl", "-s", "http://localhost:9200/_cluster/health?pretty" ]
interval: 30s
timeout: 10s
retries: 50
@@ -652,15 +652,15 @@ services:
- elasticsearch
restart: always
environment:
- - XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=d1a66dfd-c4d3-4a0a-8290-2abcb83ab3aa
- - NO_PROXY=localhost,127.0.0.1,elasticsearch,kibana
- - XPACK_SECURITY_ENABLED=true
- - XPACK_SECURITY_ENROLLMENT_ENABLED=false
- - XPACK_SECURITY_HTTP_SSL_ENABLED=false
- - XPACK_FLEET_ISAIRGAPPED=true
- - I18N_LOCALE=zh-CN
- - SERVER_PORT=5601
- - ELASTICSEARCH_HOSTS="http://elasticsearch:9200"
+ XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: d1a66dfd-c4d3-4a0a-8290-2abcb83ab3aa
+ NO_PROXY: localhost,127.0.0.1,elasticsearch,kibana
+ XPACK_SECURITY_ENABLED: "true"
+ XPACK_SECURITY_ENROLLMENT_ENABLED: "false"
+ XPACK_SECURITY_HTTP_SSL_ENABLED: "false"
+ XPACK_FLEET_ISAIRGAPPED: "true"
+ I18N_LOCALE: zh-CN
+ SERVER_PORT: "5601"
+ ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- ${KIBANA_PORT:-5601}:5601
healthcheck: