docker-compose.yaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. version: '3'
  2. services:
  3. # API service
  4. api:
  5. image: langgenius/dify-api:0.6.9
  6. restart: always
  7. environment:
  8. # Startup mode, 'api' starts the API server.
  9. MODE: api
  10. # The log level for the application. Supported values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`
  11. LOG_LEVEL: INFO
  12. # enable DEBUG mode to output more logs
  13. # DEBUG : true
  14. # A secret key that is used for securely signing the session cookie and encrypting sensitive information on the database. You can generate a strong key using `openssl rand -base64 42`.
  15. SECRET_KEY: sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U
  16. # The base URL of console application web frontend, refers to the Console base URL of WEB service if console domain is
  17. # different from api or web app domain.
  18. # example: http://cloud.dify.ai
  19. CONSOLE_WEB_URL: ''
  20. # Password for admin user initialization.
  21. # If left unset, admin user will not be prompted for a password when creating the initial admin account.
  22. INIT_PASSWORD: ''
  23. # The base URL of console application api server, refers to the Console base URL of WEB service if console domain is
  24. # different from api or web app domain.
  25. # example: http://cloud.dify.ai
  26. CONSOLE_API_URL: ''
  27. # The URL prefix for Service API endpoints, refers to the base URL of the current API service if api domain is
  28. # different from console domain.
  29. # example: http://api.dify.ai
  30. SERVICE_API_URL: ''
  31. # The URL prefix for Web APP frontend, refers to the Web App base URL of WEB service if web app domain is different from
  32. # console or api domain.
  33. # example: http://udify.app
  34. APP_WEB_URL: ''
  35. # File preview or download Url prefix.
  36. # used to display File preview or download Url to the front-end or as Multi-model inputs;
  37. # Url is signed and has expiration time.
  38. FILES_URL: ''
  39. # File Access Time specifies a time interval in seconds for the file to be accessed.
  40. # The default value is 300 seconds.
  41. FILES_ACCESS_TIMEOUT: 300
  42. # When enabled, migrations will be executed prior to application startup and the application will start after the migrations have completed.
  43. MIGRATION_ENABLED: 'true'
  44. # The configurations of postgres database connection.
  45. # It is consistent with the configuration in the 'db' service below.
  46. DB_USERNAME: postgres
  47. DB_PASSWORD: difyai123456
  48. DB_HOST: db
  49. DB_PORT: 5432
  50. DB_DATABASE: dify
  51. # The configurations of redis connection.
  52. # It is consistent with the configuration in the 'redis' service below.
  53. REDIS_HOST: redis
  54. REDIS_PORT: 6379
  55. REDIS_USERNAME: ''
  56. REDIS_PASSWORD: difyai123456
  57. REDIS_USE_SSL: 'false'
  58. # use redis db 0 for redis cache
  59. REDIS_DB: 0
  60. # The configurations of celery broker.
  61. # Use redis as the broker, and redis db 1 for celery broker.
  62. CELERY_BROKER_URL: redis://:difyai123456@redis:6379/1
  63. # Specifies the allowed origins for cross-origin requests to the Web API, e.g. https://dify.app or * for all origins.
  64. WEB_API_CORS_ALLOW_ORIGINS: '*'
  65. # Specifies the allowed origins for cross-origin requests to the console API, e.g. https://cloud.dify.ai or * for all origins.
  66. CONSOLE_CORS_ALLOW_ORIGINS: '*'
  67. # CSRF Cookie settings
  68. # Controls whether a cookie is sent with cross-site requests,
  69. # providing some protection against cross-site request forgery attacks
  70. #
  71. # Default: `SameSite=Lax, Secure=false, HttpOnly=true`
  72. # This default configuration supports same-origin requests using either HTTP or HTTPS,
  73. # but does not support cross-origin requests. It is suitable for local debugging purposes.
  74. #
  75. # If you want to enable cross-origin support,
  76. # you must use the HTTPS protocol and set the configuration to `SameSite=None, Secure=true, HttpOnly=true`.
  77. #
  78. # The type of storage to use for storing user files. Supported values are `local` and `s3` and `azure-blob` and `google-storage`, Default: `local`
  79. STORAGE_TYPE: local
  80. # The path to the local storage directory, the directory relative the root path of API service codes or absolute path. Default: `storage` or `/home/john/storage`.
  81. # only available when STORAGE_TYPE is `local`.
  82. STORAGE_LOCAL_PATH: storage
  83. # The S3 storage configurations, only available when STORAGE_TYPE is `s3`.
  84. S3_ENDPOINT: 'https://xxx.r2.cloudflarestorage.com'
  85. S3_BUCKET_NAME: 'difyai'
  86. S3_ACCESS_KEY: 'ak-difyai'
  87. S3_SECRET_KEY: 'sk-difyai'
  88. S3_REGION: 'us-east-1'
  89. # The Azure Blob storage configurations, only available when STORAGE_TYPE is `azure-blob`.
  90. AZURE_BLOB_ACCOUNT_NAME: 'difyai'
  91. AZURE_BLOB_ACCOUNT_KEY: 'difyai'
  92. AZURE_BLOB_CONTAINER_NAME: 'difyai-container'
  93. AZURE_BLOB_ACCOUNT_URL: 'https://<your_account_name>.blob.core.windows.net'
  94. # The Google storage configurations, only available when STORAGE_TYPE is `google-storage`.
  95. GOOGLE_STORAGE_BUCKET_NAME: 'yout-bucket-name'
  96. # if you want to use Application Default Credentials, you can leave GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64 empty.
  97. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: 'your-google-service-account-json-base64-string'
  98. # The type of vector store to use. Supported values are `weaviate`, `qdrant`, `milvus`, `relyt`.
  99. VECTOR_STORE: weaviate
  100. # The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
  101. WEAVIATE_ENDPOINT: http://weaviate:8080
  102. # The Weaviate API key.
  103. WEAVIATE_API_KEY: WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  104. # The Qdrant endpoint URL. Only available when VECTOR_STORE is `qdrant`.
  105. QDRANT_URL: http://qdrant:6333
  106. # The Qdrant API key.
  107. QDRANT_API_KEY: difyai123456
  108. # The Qdrant client timeout setting.
  109. QDRANT_CLIENT_TIMEOUT: 20
  110. # The Qdrant client enable gRPC mode.
  111. QDRANT_GRPC_ENABLED: 'false'
  112. # The Qdrant server gRPC mode PORT.
  113. QDRANT_GRPC_PORT: 6334
  114. # Milvus configuration Only available when VECTOR_STORE is `milvus`.
  115. # The milvus host.
  116. MILVUS_HOST: 127.0.0.1
  117. # The milvus host.
  118. MILVUS_PORT: 19530
  119. # The milvus username.
  120. MILVUS_USER: root
  121. # The milvus password.
  122. MILVUS_PASSWORD: Milvus
  123. # The milvus tls switch.
  124. MILVUS_SECURE: 'false'
  125. # relyt configurations
  126. RELYT_HOST: db
  127. RELYT_PORT: 5432
  128. RELYT_USER: postgres
  129. RELYT_PASSWORD: difyai123456
  130. RELYT_DATABASE: postgres
  131. # pgvector configurations
  132. PGVECTOR_HOST: pgvector
  133. PGVECTOR_PORT: 5432
  134. PGVECTOR_USER: postgres
  135. PGVECTOR_PASSWORD: difyai123456
  136. PGVECTOR_DATABASE: dify
  137. # Mail configuration, support: resend, smtp
  138. MAIL_TYPE: ''
  139. # default send from email address, if not specified
  140. MAIL_DEFAULT_SEND_FROM: 'YOUR EMAIL FROM (eg: no-reply <no-reply@dify.ai>)'
  141. SMTP_SERVER: ''
  142. SMTP_PORT: 465
  143. SMTP_USERNAME: ''
  144. SMTP_PASSWORD: ''
  145. SMTP_USE_TLS: 'true'
  146. SMTP_OPPORTUNISTIC_TLS: 'false'
  147. # the api-key for resend (https://resend.com)
  148. RESEND_API_KEY: ''
  149. RESEND_API_URL: https://api.resend.com
  150. # The DSN for Sentry error reporting. If not set, Sentry error reporting will be disabled.
  151. SENTRY_DSN: ''
  152. # The sample rate for Sentry events. Default: `1.0`
  153. SENTRY_TRACES_SAMPLE_RATE: 1.0
  154. # The sample rate for Sentry profiles. Default: `1.0`
  155. SENTRY_PROFILES_SAMPLE_RATE: 1.0
  156. # Notion import configuration, support public and internal
  157. NOTION_INTEGRATION_TYPE: public
  158. NOTION_CLIENT_SECRET: you-client-secret
  159. NOTION_CLIENT_ID: you-client-id
  160. NOTION_INTERNAL_SECRET: you-internal-secret
  161. # The sandbox service endpoint.
  162. CODE_EXECUTION_ENDPOINT: "http://sandbox:8194"
  163. CODE_EXECUTION_API_KEY: dify-sandbox
  164. CODE_MAX_NUMBER: 9223372036854775807
  165. CODE_MIN_NUMBER: -9223372036854775808
  166. CODE_MAX_STRING_LENGTH: 80000
  167. TEMPLATE_TRANSFORM_MAX_LENGTH: 80000
  168. CODE_MAX_STRING_ARRAY_LENGTH: 30
  169. CODE_MAX_OBJECT_ARRAY_LENGTH: 30
  170. CODE_MAX_NUMBER_ARRAY_LENGTH: 1000
  171. # SSRF Proxy server
  172. SSRF_PROXY_HTTP_URL: 'http://ssrf_proxy:3128'
  173. SSRF_PROXY_HTTPS_URL: 'http://ssrf_proxy:3128'
  174. # Indexing configuration
  175. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: 1000
  176. depends_on:
  177. - db
  178. - redis
  179. volumes:
  180. # Mount the storage directory to the container, for storing user files.
  181. - ./volumes/app/storage:/app/api/storage
  182. # uncomment to expose dify-api port to host
  183. # ports:
  184. # - "5001:5001"
  185. networks:
  186. - ssrf_proxy_network
  187. - default
  188. # worker service
  189. # The Celery worker for processing the queue.
  190. worker:
  191. image: langgenius/dify-api:0.6.9
  192. restart: always
  193. environment:
  194. CONSOLE_WEB_URL: ''
  195. # Startup mode, 'worker' starts the Celery worker for processing the queue.
  196. MODE: worker
  197. # --- All the configurations below are the same as those in the 'api' service. ---
  198. # The log level for the application. Supported values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`
  199. LOG_LEVEL: INFO
  200. # A secret key that is used for securely signing the session cookie and encrypting sensitive information on the database. You can generate a strong key using `openssl rand -base64 42`.
  201. # same as the API service
  202. SECRET_KEY: sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U
  203. # The configurations of postgres database connection.
  204. # It is consistent with the configuration in the 'db' service below.
  205. DB_USERNAME: postgres
  206. DB_PASSWORD: difyai123456
  207. DB_HOST: db
  208. DB_PORT: 5432
  209. DB_DATABASE: dify
  210. # The configurations of redis cache connection.
  211. REDIS_HOST: redis
  212. REDIS_PORT: 6379
  213. REDIS_USERNAME: ''
  214. REDIS_PASSWORD: difyai123456
  215. REDIS_DB: 0
  216. REDIS_USE_SSL: 'false'
  217. # The configurations of celery broker.
  218. CELERY_BROKER_URL: redis://:difyai123456@redis:6379/1
  219. # The type of storage to use for storing user files. Supported values are `local` and `s3` and `azure-blob` and `google-storage`, Default: `local`
  220. STORAGE_TYPE: local
  221. STORAGE_LOCAL_PATH: storage
  222. # The S3 storage configurations, only available when STORAGE_TYPE is `s3`.
  223. S3_ENDPOINT: 'https://xxx.r2.cloudflarestorage.com'
  224. S3_BUCKET_NAME: 'difyai'
  225. S3_ACCESS_KEY: 'ak-difyai'
  226. S3_SECRET_KEY: 'sk-difyai'
  227. S3_REGION: 'us-east-1'
  228. # The Azure Blob storage configurations, only available when STORAGE_TYPE is `azure-blob`.
  229. AZURE_BLOB_ACCOUNT_NAME: 'difyai'
  230. AZURE_BLOB_ACCOUNT_KEY: 'difyai'
  231. AZURE_BLOB_CONTAINER_NAME: 'difyai-container'
  232. AZURE_BLOB_ACCOUNT_URL: 'https://<your_account_name>.blob.core.windows.net'
  233. # The Google storage configurations, only available when STORAGE_TYPE is `google-storage`.
  234. GOOGLE_STORAGE_BUCKET_NAME: 'yout-bucket-name'
  235. # if you want to use Application Default Credentials, you can leave GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64 empty.
  236. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: 'your-google-service-account-json-base64-string'
  237. # The type of vector store to use. Supported values are `weaviate`, `qdrant`, `milvus`, `relyt`, `pgvector`.
  238. VECTOR_STORE: weaviate
  239. # The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
  240. WEAVIATE_ENDPOINT: http://weaviate:8080
  241. # The Weaviate API key.
  242. WEAVIATE_API_KEY: WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
  243. # The Qdrant endpoint URL. Only available when VECTOR_STORE is `qdrant`.
  244. QDRANT_URL: http://qdrant:6333
  245. # The Qdrant API key.
  246. QDRANT_API_KEY: difyai123456
  247. # The Qdrant client timeout setting.
  248. QDRANT_CLIENT_TIMEOUT: 20
  249. # The Qdrant client enable gRPC mode.
  250. QDRANT_GRPC_ENABLED: 'false'
  251. # The Qdrant server gRPC mode PORT.
  252. QDRANT_GRPC_PORT: 6334
  253. # Milvus configuration Only available when VECTOR_STORE is `milvus`.
  254. # The milvus host.
  255. MILVUS_HOST: 127.0.0.1
  256. # The milvus host.
  257. MILVUS_PORT: 19530
  258. # The milvus username.
  259. MILVUS_USER: root
  260. # The milvus password.
  261. MILVUS_PASSWORD: Milvus
  262. # The milvus tls switch.
  263. MILVUS_SECURE: 'false'
  264. # Mail configuration, support: resend
  265. MAIL_TYPE: ''
  266. # default send from email address, if not specified
  267. MAIL_DEFAULT_SEND_FROM: 'YOUR EMAIL FROM (eg: no-reply <no-reply@dify.ai>)'
  268. SMTP_SERVER: ''
  269. SMTP_PORT: 465
  270. SMTP_USERNAME: ''
  271. SMTP_PASSWORD: ''
  272. SMTP_USE_TLS: 'true'
  273. SMTP_OPPORTUNISTIC_TLS: 'false'
  274. # the api-key for resend (https://resend.com)
  275. RESEND_API_KEY: ''
  276. RESEND_API_URL: https://api.resend.com
  277. # relyt configurations
  278. RELYT_HOST: db
  279. RELYT_PORT: 5432
  280. RELYT_USER: postgres
  281. RELYT_PASSWORD: difyai123456
  282. RELYT_DATABASE: postgres
  283. # pgvector configurations
  284. PGVECTOR_HOST: pgvector
  285. PGVECTOR_PORT: 5432
  286. PGVECTOR_USER: postgres
  287. PGVECTOR_PASSWORD: difyai123456
  288. PGVECTOR_DATABASE: dify
  289. # Notion import configuration, support public and internal
  290. NOTION_INTEGRATION_TYPE: public
  291. NOTION_CLIENT_SECRET: you-client-secret
  292. NOTION_CLIENT_ID: you-client-id
  293. NOTION_INTERNAL_SECRET: you-internal-secret
  294. # Indexing configuration
  295. INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: 1000
  296. depends_on:
  297. - db
  298. - redis
  299. volumes:
  300. # Mount the storage directory to the container, for storing user files.
  301. - ./volumes/app/storage:/app/api/storage
  302. networks:
  303. - ssrf_proxy_network
  304. - default
  305. # Frontend web application.
  306. web:
  307. image: langgenius/dify-web:0.6.9
  308. restart: always
  309. environment:
  310. # The base URL of console application api server, refers to the Console base URL of WEB service if console domain is
  311. # different from api or web app domain.
  312. # example: http://cloud.dify.ai
  313. CONSOLE_API_URL: ''
  314. # The URL for Web APP api server, refers to the Web App base URL of WEB service if web app domain is different from
  315. # console or api domain.
  316. # example: http://udify.app
  317. APP_API_URL: ''
  318. # The DSN for Sentry error reporting. If not set, Sentry error reporting will be disabled.
  319. SENTRY_DSN: ''
  320. # uncomment to expose dify-web port to host
  321. # ports:
  322. # - "3000:3000"
  323. # The postgres database.
  324. db:
  325. image: postgres:15-alpine
  326. restart: always
  327. environment:
  328. PGUSER: postgres
  329. # The password for the default postgres user.
  330. POSTGRES_PASSWORD: difyai123456
  331. # The name of the default postgres database.
  332. POSTGRES_DB: dify
  333. # postgres data directory
  334. PGDATA: /var/lib/postgresql/data/pgdata
  335. volumes:
  336. - ./volumes/db/data:/var/lib/postgresql/data
  337. # uncomment to expose db(postgresql) port to host
  338. # ports:
  339. # - "5432:5432"
  340. healthcheck:
  341. test: [ "CMD", "pg_isready" ]
  342. interval: 1s
  343. timeout: 3s
  344. retries: 30
  345. # The redis cache.
  346. redis:
  347. image: redis:6-alpine
  348. restart: always
  349. volumes:
  350. # Mount the redis data directory to the container.
  351. - ./volumes/redis/data:/data
  352. # Set the redis password when startup redis server.
  353. command: redis-server --requirepass difyai123456
  354. healthcheck:
  355. test: [ "CMD", "redis-cli", "ping" ]
  356. # uncomment to expose redis port to host
  357. # ports:
  358. # - "6379:6379"
  359. # The Weaviate vector store.
  360. weaviate:
  361. image: semitechnologies/weaviate:1.19.0
  362. restart: always
  363. volumes:
  364. # Mount the Weaviate data directory to the container.
  365. - ./volumes/weaviate:/var/lib/weaviate
  366. environment:
  367. # The Weaviate configurations
  368. # You can refer to the [Weaviate](https://weaviate.io/developers/weaviate/config-refs/env-vars) documentation for more information.
  369. QUERY_DEFAULTS_LIMIT: 25
  370. AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'false'
  371. PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
  372. DEFAULT_VECTORIZER_MODULE: 'none'
  373. CLUSTER_HOSTNAME: 'node1'
  374. AUTHENTICATION_APIKEY_ENABLED: 'true'
  375. AUTHENTICATION_APIKEY_ALLOWED_KEYS: 'WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih'
  376. AUTHENTICATION_APIKEY_USERS: 'hello@dify.ai'
  377. AUTHORIZATION_ADMINLIST_ENABLED: 'true'
  378. AUTHORIZATION_ADMINLIST_USERS: 'hello@dify.ai'
  379. # uncomment to expose weaviate port to host
  380. # ports:
  381. # - "8080:8080"
  382. # The DifySandbox
  383. sandbox:
  384. image: langgenius/dify-sandbox:0.2.1
  385. restart: always
  386. environment:
  387. # The DifySandbox configurations
  388. # Make sure you are changing this key for your deployment with a strong key.
  389. # You can generate a strong key using `openssl rand -base64 42`.
  390. API_KEY: dify-sandbox
  391. GIN_MODE: 'release'
  392. WORKER_TIMEOUT: 15
  393. ENABLE_NETWORK: 'true'
  394. HTTP_PROXY: 'http://ssrf_proxy:3128'
  395. HTTPS_PROXY: 'http://ssrf_proxy:3128'
  396. SANDBOX_PORT: 8194
  397. volumes:
  398. - ./volumes/sandbox/dependencies:/dependencies
  399. networks:
  400. - ssrf_proxy_network
  401. # ssrf_proxy server
  402. # for more information, please refer to
  403. # https://docs.dify.ai/getting-started/install-self-hosted/install-faq#id-16.-why-is-ssrf_proxy-needed
  404. ssrf_proxy:
  405. image: ubuntu/squid:latest
  406. restart: always
  407. volumes:
  408. # pls clearly modify the squid.conf file to fit your network environment.
  409. - ./volumes/ssrf_proxy/squid.conf:/etc/squid/squid.conf
  410. networks:
  411. - ssrf_proxy_network
  412. - default
  413. # Qdrant vector store.
  414. # uncomment to use qdrant as vector store.
  415. # (if uncommented, you need to comment out the weaviate service above,
  416. # and set VECTOR_STORE to qdrant in the api & worker service.)
  417. # qdrant:
  418. # image: langgenius/qdrant:v1.7.3
  419. # restart: always
  420. # volumes:
  421. # - ./volumes/qdrant:/qdrant/storage
  422. # environment:
  423. # QDRANT_API_KEY: 'difyai123456'
  424. # # uncomment to expose qdrant port to host
  425. # # ports:
  426. # # - "6333:6333"
  427. # # - "6334:6334"
  428. # The pgvector vector database.
  429. # Uncomment to use qdrant as vector store.
  430. # pgvector:
  431. # image: pgvector/pgvector:pg16
  432. # restart: always
  433. # environment:
  434. # PGUSER: postgres
  435. # # The password for the default postgres user.
  436. # POSTGRES_PASSWORD: difyai123456
  437. # # The name of the default postgres database.
  438. # POSTGRES_DB: dify
  439. # # postgres data directory
  440. # PGDATA: /var/lib/postgresql/data/pgdata
  441. # volumes:
  442. # - ./volumes/pgvector/data:/var/lib/postgresql/data
  443. # # uncomment to expose db(postgresql) port to host
  444. # # ports:
  445. # # - "5433:5432"
  446. # healthcheck:
  447. # test: [ "CMD", "pg_isready" ]
  448. # interval: 1s
  449. # timeout: 3s
  450. # retries: 30
  451. # The nginx reverse proxy.
  452. # used for reverse proxying the API service and Web service.
  453. nginx:
  454. image: nginx:latest
  455. restart: always
  456. volumes:
  457. - ./nginx/nginx.conf:/etc/nginx/nginx.conf
  458. - ./nginx/proxy.conf:/etc/nginx/proxy.conf
  459. - ./nginx/conf.d:/etc/nginx/conf.d
  460. #- ./nginx/ssl:/etc/ssl
  461. depends_on:
  462. - api
  463. - web
  464. ports:
  465. - "80:80"
  466. #- "443:443"
  467. networks:
  468. # create a network between sandbox, api and ssrf_proxy, and can not access outside.
  469. ssrf_proxy_network:
  470. driver: bridge
  471. internal: true