Skip to content

Commit eb0e51d

Browse files
SulphurFHfanghao
and
fanghao
authored
optimize: docker-compose.middleware.yaml update env_file dependence (langgenius#17646)
Co-authored-by: fanghao <[email protected]>
1 parent f633d1e commit eb0e51d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/docker-compose.middleware.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ services:
2929
redis:
3030
image: redis:6-alpine
3131
restart: always
32+
env_file:
33+
- ./middleware.env
3234
environment:
3335
REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}
3436
volumes:
@@ -45,6 +47,8 @@ services:
4547
sandbox:
4648
image: langgenius/dify-sandbox:0.2.11
4749
restart: always
50+
env_file:
51+
- ./middleware.env
4852
environment:
4953
# The DifySandbox configurations
5054
# Make sure you are changing this key for your deployment with a strong key.
@@ -68,6 +72,8 @@ services:
6872
plugin_daemon:
6973
image: langgenius/dify-plugin-daemon:0.0.6-local
7074
restart: always
75+
env_file:
76+
- ./middleware.env
7177
environment:
7278
# Use the shared environment variables.
7379
DB_HOST: ${DB_HOST:-db}
@@ -107,6 +113,8 @@ services:
107113
- ./ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template
108114
- ./ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh
109115
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" ]
116+
env_file:
117+
- ./middleware.env
110118
environment:
111119
# pls clearly modify the squid env vars to fit your network environment.
112120
HTTP_PORT: ${SSRF_HTTP_PORT:-3128}

0 commit comments

Comments
 (0)