From 5df195ea823efcdc1f0f523df80fde7395393827 Mon Sep 17 00:00:00 2001 From: pikeman20 Date: Thu, 15 Jan 2026 05:42:51 +0700 Subject: [PATCH] feat(docker): use environment variables for volume paths This change introduces environment variable interpolation for volume paths, allowing users to customize where configuration, authentication, and log data are stored. Why: Makes the project easier to deploy on various hosting environments that require decoupled data management without needing to modify the core docker-compose.yml.. Key points: Defaults to existing paths (./config.yaml, ./auths, ./logs) to ensure zero breaking changes for current users. Follows the existing naming convention used in the project. Enhances portability for CI/CD and cloud-native deployments. --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 29712419..ad2190c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: - "51121:51121" - "11451:11451" volumes: - - ./config.yaml:/CLIProxyAPI/config.yaml - - ./auths:/root/.cli-proxy-api - - ./logs:/CLIProxyAPI/logs + - ${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 restart: unless-stopped