From 01f387f44754af09783ac52a2051cb2c66a7bf44 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Tue, 21 Jul 2026 09:18:13 +0800 Subject: [PATCH] feat(docker): add plugin volume mapping to docker-compose files --- docker-compose.cluster.yml | 7 ++++--- docker-compose.yml | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.cluster.yml b/docker-compose.cluster.yml index 540f98d74..9e6a6120b 100644 --- a/docker-compose.cluster.yml +++ b/docker-compose.cluster.yml @@ -15,8 +15,9 @@ services: ports: - "8317:8317" volumes: - - ./home:/root/.cli-proxy-api - - ./logs:/CLIProxyAPI/logs + - ${CLI_PROXY_HOME_PATH:-./home}:/root/.cli-proxy-api + - ${CLI_PROXY_LOG_PATH:-./logs}:/CLIProxyAPI/logs + - ${CLI_PROXY_PLUGIN_PATH:-./plugins}:/CLIProxyAPI/plugins command: > sh -eu -c ' if [ -z "$$HOME_JWT" ]; then @@ -26,4 +27,4 @@ services: exec ./CLIProxyAPI -home-jwt "$$HOME_JWT" ' - restart: unless-stopped \ No newline at end of file + restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml index ad2190c23..2205d30ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,4 +25,5 @@ services: - ${CLI_PROXY_CONFIG_PATH:-./config.yaml}:/CLIProxyAPI/config.yaml - ${CLI_PROXY_AUTH_PATH:-./auths}:/root/.cli-proxy-api - ${CLI_PROXY_LOG_PATH:-./logs}:/CLIProxyAPI/logs + - ${CLI_PROXY_PLUGIN_PATH:-./plugins}:/CLIProxyAPI/plugins restart: unless-stopped